How can i apply jquery on all elements with same id attribute ?
How can i apply jquery on all elements with same id attribute ? i want to apply a focus() and blur() function on a textarea elements that have same id? ...
How can i apply jquery on all elements with same id attribute ? i want to apply a focus() and blur() function on a textarea elements that have same id? ...
Hi, I'm trying to perform a simple replace(); method in JavaScript where I'd like to remove every class from an HTML element except a specific one, how can I do it? I tried this without success: <div id="my_div" class="hello letsgo baby is_checked cool">Gordon Freeman</div> <script> $(document).ready(function () { alert ($(#my_div...
I can't seem to get my jQuery time picker to work at all. Nothing happens when I click the input box. Any idea what I'm doing wrong? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-...
Hi all I am fairly new to programming. I have been teaching myself php and css and is trying to combine that with some jQuery. I have a site with a list of items that I want to allow the user to vote up. (www.blueskycouncil.com you can log in with stack/this) currently I am updating the database by sending this: <a href=\"idea_karma.p...
I'm currently trying to run jQuery Validation plugin inside a jQuery dialog. The code is as such in the document.ready: $("#Dialog").dialog({ bgiframe: true, autoOpen: false, height: 600, width: 590, modal: true, resizable: false, open: function (type, ...
I am trying to build out a gallery of photo items in javascript from facebook. The gallery is presented in a table with 5 images in each row. Every time I try to add something on to the outtable variable it empties my code- function getImages(){ var $outTable =''; FB.api('/me', function(response) { ...
with javascript(Jquery). Searched online, seems like it's not possible. So far I have something like: $("#textAreaId").bind('paste', function (e) { alert('pasting text!!!!'); var data = $("#taData").val(); alert(data); }); but the data is empty at this stage...is there a way to capture the pasted inpu...
hi i have a slideshow i created with jquery and jquery cyle its working fine but when i cick on refresh page all images shows on the page for while and then hide and slideshow works fine how can i fix that is this a css problem ? or its normal ...
I have a script that runs 95% of the time perfectly but the other 5% of the time the buttons contents are missing. The script is run on every page and turns every div with the class 'button' into a button. var button_img = 'button-'+colour+'-'+size; var butt_id = $(this).text().toLowerCase().replace(/ /g,'_'); var placehold...
I need to parse a simple json response (from my rails app): [ { "photo": { "updated_at":"2010-10-14T19:12:35Z", "photo_file_size":206422, "created_at":"2010-10-14T19:12:01Z" } }, { "photo": { "updated_at":"...
I'm trying to use a zoom plugin for interactive maps I put everything into the site and as far as I can tell the scripts are all working. There are no console errors so I'm guessing the problem is that the image paths are not correct because nothing except the containing div is showing up. Looking at it through firebug all I can see is ...
I am writing a small asp.net WebForms app. that uses Jquery. Is there any benefit to using the ASP.Net ScriptManager control as opposed to just using the tag to import my Jquery and custom javascript code? ...
I am loading the following javascript files from a CDN. Is there any way I can check if these have been loaded correctly and if not, load them from a local folder? http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/jquery-ui.min.js http://ajax.microsoft.com/ajax/jquery.validate/1.7/j...
Here is my code. //generate a id $(".slide_img_a").each(function(){ $(this).attr("id","img"+(Math.round(Math.random()*100))) }); // get id var img_id = $(".slide_img_a").attr("id"); // alert the id $(".slide_img_a img").hover(function(){ alert(img_id); }); The problem of this is I have a 5 images with the same class and rand...
Hello, all! I have various inputs, selects and textareas in a form. I'd like to select one of them based on name without knowing the type of the element with jQuery. I know I can do something like $("input[name=foo], textarea[name=foo], select[name=foo]") but I wonder if I can do it in a more concise way. What do you say? ...
I'm building a scheduling system for my work, and it's set up to be a two column page - one column for the nav bar, and the next column for the data. I'm using some jquery to have it automatically format the column widths depending on the size of the user's screen. For some reason the size of the columns in my header table are differen...
Hello, I have a clickable accordian as seen at http://intelligentstudios.co.uk/SimpleHosting/ however I want to have it so after lets say 5-10 seconds it automatically moves onto the next slide. I'm not 100% sure on how to do this, I looked up the animate function but it seems to just break it. Any help? Steve ...
We have a grid with datatype json. We have the following custom formatter: function opsFormatter (cellvalue, options, rowObject){ '<a title=MA href=javascript:showDialog(' + rowObject[5] + ')>MA<a>' + ' '; } Instead of rowObject[5] is there any object notation where we can specify the actual column name ("account")? ...
I'm trying to setup an exit survey so that when a user leaves our checkout page they are prompted asking them why they're leaving. Is this possible? I've spent some time on Google but it appears as though the only solution is a simple browser-controlled confirm-like prompt. Is this true? update The following confirm dialog never app...
Hi So I'm changing the css with jquery and I wish to remove the styling I'm adding based on the input value: if(color != '000000') $("body").css("background-color", color); else // remove style ? how can I do this? Note that the line above runs whenever a color is selected using a color picker (ie. when mouse moves over a color wheel...