jquery

issue when remove display:none with JQuery

I am using Jquery buttons set, which is built into Jquery UI. And selectmenu which is a ui addon. .buttonset(); takes a group of buttons and makes thhem into radio buttons .selectmenu(); takes a select menu and truns it into a nice looking popup list. However when I place these items in a div with the property display:none and then in...

jquery :contains selector to check two lists

I have two lists with images, Album and Favorites. When clicking on a thumbnail in the Album I want to check if that image is already in the Favorites list. I tried using :contains but returns false everytime. example here: http://jsfiddle.net/tunafish/yJ95f/1/ Is :contains the right option or should I go with real arrays? The image li...

usercontrol with colorbox not firing an event

I have a colorbox which shows a hidden div when a link is clicked. within the div being shown in the colorbox is a usercontrol. its basically a subscribe to newsletter form that adds them to our customer db. For some reason the button to submit the form will not work in the colorbox, but it will if i move it outside of the hidden div. Th...

WYSIWYG - jQuery plugin - insertHTML not working in IE8

I'm using Jquery WYSIWYG plugin and have problems with 'insertHTML' and IE in code I have $('#editor').wysiwyg('insertHtml', '<h1>I'm title</h1>'); In Firefox html code is added on cursor position, but in IE at the beginning of whole text. I's Googling for solution, but nothing found :( Thank you for any advice to solving that. ...

Why the Id value is not append with Id in Jquery?

Hi Friends, This is my code What I am expecting is <input type="text" name="procedurecode1" id="procedurecode1" value=""> But the result like below <input type="text" +idvalue="" name="procedurecode" id="procedurecode" value=""> I dont know why?Thanks in advance. ...

jQuery each function not working

I've got some p tags with the class PointsToggle <p class="PointsToggle">POINTS STATEMENT - AVAILABLE 7AM TOMORROW</p> <p class="PointsToggle">SOME OTHER TEXT</p> And some jQuery like this $('.PointsToggle').each(function() { if ($(this).text = 'POINTS STATEMENT - AVAILABLE 7AM TOMORROW') { $(this).css('width', '510px'); } else ...

jQuery is not submitting form values with .submit()

i have a form with action = post and i am validating it with after validating it i am submitting that form with $("#form").submit(); but it is submitting all fields nullled while i have data in those fields.... how can i post those fields filled.. ...

Ensure jquery and FB JS SDK are both initialized

I am using the FB.ui method to publish something to the users wall and want to capture whether the user published or cancelled. To do this I am calling a function (say bi_published(){...}) which updates a table in the db which is being used to capture metrics. It does this by making a $.ajax call. The issue is bi_published has to be with...

jQuery 1.4.2 / jQuery UI droppable - remove(); issue with Internet Explorer or something wrong?

Hi, I'm using jQuery 1.4.2 (j is the .noConflict() ) / jQuery UI 1.8.5 and I'm experiencing a problem with the following code. This runs well in Chrome, FireFox and Safari, but none in Internet Explorer. The alert(); fires but the following line (the remove(); ) no. XHTML markup: <div class="mainarea"> <div class="dnd"> <d...

javascript url of a popup

Hi, I start a popup with window.open("link","name"). I don't have control on the popup. The popup it's then redirecting to another link. How can I get the final link of the popup ? The final link it's on another domain. with popup_window_object.location.href I can set the link but I can't get it. Thank you. ...

Jquery/Ajax cookie pt2

Hi, Following on from a previous question, ( Previous question), I can't seem to be able to 'fire' the ajax call if a cookie is detected. The cookie is definitely set, and the alert is displayed, but I can't for the life of me get it to trigger the ajax call again. I just need it to 'fire' the ajax when the page is loaded if the cookie ...

jQuery: textboxes in dialog window not working

hi all, i'm having a problem with the jquery dialog widget: i put a form with textboxes and combos inside a jquery dialog - when showing it up, all textboxes are not editable/clickable at all - all i can do is changing the comboboxes. seems like a bug to me :/ any ideas how to solve this? thanks ...

jQuery SIMULTANEOUSLY animate all objects in an array.

Hello, I am writing a script that does animations on a web-page. In the process I need to add several elements to an array, and then simultaneously animate them. Is it possible to use jQuery to SIMULTANEOUSLY animate all objects in an array? Or maybe there's a better method for that? Thanx ...

Can I conditionally change the character entered into an input on keypress ?

Is it possible to change the character which has been entered on keypress, without doing it manually? For example, if I want to force uppercase letters based on some condition, it'd be nice to do the following: function onKeypressHandler(e) { if ( condition ) { e.which -= 32; } } But of course that doesn't work. ...

jquery animate behaving differently in IE

This animation runs fine in Firefox, but in IE it runs the first part of the animation the first time you hover over the div and the second part of the animation the second time you hover. I need it all to run at the same time. Any ideas? $(document).ready(function() { $("#test1").hover( function() { $(this).animate({ ...

jQuery live function not working

Further to my last question I need to add in the .live() function as i'm adding the content dynamically This is what I have now $('.PointsToggle').live('each',function() { $this = $(this); if ($this.text() == 'POINTS STATEMENT - AVAILABLE 7AM TOMORROW') { $this.width(510); } els...

Why another Jquery plugin is not worked in Jquery append?

Hi Friends, This is the code First time its work fine for me.That is it open the modal box.But the second time It wont open the Modal box when I add the anchor tag using Jquery append.Why?What I need to change its going to be work?Thanks. Update: I am using Thickbox <input type="text" name="maxprocedure" id="maxprocedure" value="1"...

unbinding keydown jquery

I have created a method where you press the left and right keys and it goes from either the next or the previous page. the problem is that once you change it to another album the keypress methods are still bound to the previous album so you press the right key it will change the image in both the current and previous albums. I have tri...

Why i am unable to set z-index of div using jquery?

I have created a sample http://jsbin.com/eqiti3 here we have three divs. Now, what i want to do is: on clicking of any div it should come on the top of other div then fade and then back to its original position. This is what i am using: $(".box").click( function () { var zindex = $(this).css('z-index'); /* this too is not wo...

Jquery follow scroll

I have a sort of sidebar on my website, which has to scroll down together with the user so that it is always in the view. The code I'm using now is actually working fine however there is one problem. On smaller screens the sidebar scrolls before your at the sidebar thus making it impossible to see it all even if you scroll. So what I ...