Hi!
I hope someone can help me.
My Problem:
I have 2 sortable UL's.
<ul id="k1"> and <ul id="k2">
When i drag a li from k2 into k1, the k2 ul collapse (coz there is one li missing now).
Is it possible to say
-> When draggable start, insert a non draggable clone into the k2?
and
If drag successful
-> Put LI into k1
if not
-> Put L...
Hi there,
I'm using jQueryUI to build some modal boxes. I've created and implemented a default theme. My problem is that there are no classes applied to the buttons which I create through the dialog prefences
var userSettingsDialog = jQuery('#userSettingsDialog').dialog({
autoOpen: false,
buttons: { "Save": function() {...
Is there any way I can add a column based on another column's attribute? Something like this: If a td has attribute colspan="2", then add one new before it. Thank you.
<table>
<tr>
<td>aaa</td>
<td colspan="2">bbb</td>
<td>ccc</td>
<td>ddd</td>
<td colspan="2">eee</td>
</tr>
</table>
The result table should ...
Hi,
I want to set the css of one tab navigation button programmaticaly. The index of the tab should be a variable.
Use case: Setting a button to color red when it content has changed ascync.
Thanks!!
...
I need to sync text and audio on many web pages.
While the audio is played the text should be highlighted phrase by phrase (not word by word or by character so sync is necessary only for the start of the phrase).
I'd like not to use a flash only solution and I'd prefer to use something more HTML friendly.
I thought to use a combinati...
Possible Duplicate:
Which keycode for escape key with jQuery
How to detect escape key press in IE, Firefox and Chrome?
Below code works in IE and alerts 27, but in firefox it alerts 0
$('body').keypress(function(e){
alert(e.which);
if(e.which == 27){
// Close my modal window
...
Hi,
i show ul,(it shows my submenu) like floowing code , i have problem with hiding ul, while i move mouse over ul(into menu) , it hides, and i cound not use of mouseout event correctly
how could i hide ul, just when mouseout of "ul li"
$("ul li").mouseover(function() {
$(this).find('ul').show();
}).mouseout(function(){
$...
jcarousel is not firing event on images after clicking on next button.
Event is binded for initial load of images.
i have added the code which i'm using to show preview of the image in carousel.
can any one please help on this,
Thanks
function imagePreview() {
xOffset = 50;
yOffset = 60;
$("img.preview"...
I'm using the jquery validation option to perform client side validation on an partial view. The partial view is loaded via ajax into a modal dialog using the url (almost like Html.RenderAction).
However, when the partial view is loaded the validation metadata is not being output to the page.Normally you would see something like this:
...
Hi, I have a div on my page - I'd like when that page is being loaded tthat Div is being hidden by jQuery's .hide method. Now I have that when a page is ready then that div is hiding - but that hiding is visible. I don't want that
Now I have that code:
$(document).ready(function(event)
{
$('#Div1').hide('fast');
});
...
We are showing the list of topics as at the top of the table, because of varying widths the column width gets either bigger or smaller. We would like to keep this to a constant size and probably add dot suffixes at the end to keep it constant. How do we do this dynamically.
e.g. topic names could be Mathematics, Science, English, Histo...
dear all..
i'm newbie,i want change my DB data from jquery-ui dialog.
What code should I add to the dialog script that can make me connecting to process page before connecting to DB?
...
Hi all,
I would like to register a global ajaxSuccess handler, which would upon certain conditions cancel the specific ajaxSuccess handler of the caller functions.
Is there a way to achieve this?
Thanks in advance
...
<ul>
<li>No</li>
<li>Yes</li>
<li>No</li>
</ul>
//demostration purpose
$('ul').get(2).text();
//output = Yes
What's the best way to access a specific item in a list? and use it as a selector?
...
I try to submit a form if a condition is not validated.
$("#support_form").submit(function() {
if($("#id_reward").attr('value')=="" && $('.reward_item.none.selected').length==0) {
alert('problem');
return false;
} else {
alert('valid');
return true;
}
});
If my form is valid on the first call, my form is well sub...
I have a function like this... I am trying to insert a class name using a variable gotValue. How do I pass it in jQuery? I have tried that in if clause, but it did not work.
function fullData(gotValue)
{
alert(gotValue);
var count = gotvalue.substring(9);
if($('.'+gotValue+'').is(':checked'))
{
alert('working'...
I'm trying to build an FAQ page. The page will have 2 columns: first column will have list of questions, second column will have the answers.
Essentially I'd like to hide the answer column and when a question is clicked, it will fade in. When another question is clicked, the old answer will fade out and the new answer fades in. So I gue...
Hi,
i use the following code to send an ajax-request every 3 seconds:
var refreshId = setInterval(function() {
$.ajax({
async: true,
url: 'gohere',
dataType: 'text',
cache: false,
timeout: 5000,
success: function(result, textStatus, XMLHttpRequest) {
alert('textStatus: ' ...
Hey,
I've been playing around with http://nixboxdesigns.com/projects/jquery-lavalamp/ for a navigation menu on a new site I'm building and it works great with minimal fuss, I then started wondering if I could add some sub navigation options to the menu and set about building that in. The trouble I'm having is making the lavaLamp plugin ...
I want to pass a URL on click of a button so the browser can redirect to the URL.
url value = /web/SMI6041001090/home?contId=186&contName=sa
When a user clicks on the button it should redirect to this URL.
var url = document.<portlet:namespace />regForm.fwdURL.value;
alert('url -->'+url);
jQuery('.submit-button').click(function(){
...