jquery

Noobie Jquery Question - Why doesn't this simple script work?

Hello! I'm learning JQuery and I wrote a simple AJAX external script for my homepage that tries to load some static markup from a seperate html file and insert it into my homepage when i hover over a link... $(function() { $('a#contact_link').hover(function() { alert('test1'); $('<div id="contact_container">')...

How to do this using jQuery - document.getElementById("selectlist").value

Hi, In jQuery, what is the equivalent to document.getElementById("selectlist").value ? I am trying to get the value of a select list item. Thanks. ...

What are the .js files to include while using Jquery's Round corner plugin?

I want to know the list of files to included while using jquery's round corners plugin. And how to use the functions in that Javascript. I need a round corner in my website with pure css and Javascript without images ...

How do I set the value of an input field inside an iframe with jQuery?

Hey, I have a form inside an iframe that needs to be manipulated from the main frame. The iframe is viewed in a pop-over when a button is clicked in the main frame. It then contains a upload form with a hidden field called dir. I want to set the hidden field before showing the form. I tried: $('#upload_iframe').contents().find('#dir'...

Noobie Jquery Question - I found a bug in my script, not sure how to fix it

Hello! Thanks for your help on my last noobie jquery question and since you done good, I have another for you :) The script below allows me to perform some simple AJAX by retrieving some static markup from another HTML file and insert it into my homepage. I'm experiencing a bug that I think is related to the magic of asynchronicity, b...

jQuery with ASP.NET WebForms - disabling textboxes

Another jQuery noob question - what am I doing wrong?? I have some HTML markup rendered by ASP.NET 3.5 webforms which looks like this: <input id="ctl01_cphContent_pnlBasicInfo_chkRC" type="checkbox" name="ctl01$cphContent$pnlBasicInfo$chkRC" /> <label for="ctl01_cphContent_cntPromos_pnlBasicInfo_chkRC">Recurrent Charges</label>...

Does anyone know of issues with jQuery selector in IE with html select boxes?

I've got the following jQuery code for getting the first character of the string value of the selected option of an html select box. var mode = $("#mode :selected").text()[0]; "mode" is the id of the html select element I want. This is not working in IE at the moment - does anyone know why that might be? EDIT: Sorry everyone, it wa...

jQuery UI - Performance penalty on multiple draggable?

Hi there, I have a question regarding performance. Is there a performance penalty when I call draggable (with all the same options) on already draggable Elements? I have Speech Bubbles which are draggable on a drag container (say, a comic). These Bubbles are also droppables because you can chose which kind of Bubble (speaking, angry, t...

serialSroll - How do I scroll an inner div?

This is a test page I've put up: http://02ce746.netsolhost.com/tst/a.htm I am trying to auto-scroll the DIV upon page load. I've tried so many different combinations in script.js that I am about to give up. Anyone could help? ...

Input field events using jquery

Hi, i want to validate a form, and i want its function like twitter sign up form. Now if i use change event it trigger only after text filed value change and it losses focus, and if i use keyup event it will start validating as soon as he start filling the form. Cann any one suggest best way of doing this and am using jquery ...

jQuery build a queue with custom functions (not talking about fx queues)

This is my code... var _before = function () { for (var i = 0; i <= 10000; i++) { console.log(i); } }; var _appear = function () { console.log('i am in the middle of it'); }; var _after = function () { console.log('all done!'); }; jQuery.fn.doSomething = function() { this.click(function() { _before(); ...

Scale a div to fit in window but preserve aspect ratio

How can I scale a div to fit inside the browser view port but preserve the aspect ratio of the div. How can I do this using CSS and/or JQuery? Thanks! ...

jQuery hover(): mouseout does not fire when using overflow:auto (with scrollbars)

I'm using jQuery's hover() helper to attach some behavior to <li> elements in a <ul> with max-height and overflow:auto CSS properties. When the height of the <ul> goes beyond max-height and the vertical scrollbar appears, hovering over the <li> elements triggers mouseOver, but if I move to the right to the scrollbar and start scrolling...

JQuery setting the selected attribute on a select list

I have the following html <select id="dropdown"> <option>A</option> <option>B</option> <option>C</option> </select> I have the string "B" so I want to set the selected attrribute on it so it will be: <select id="dropdown"> <option>A</option> <option selected="selected">B</option> <option>C</option> </select> ...

jQuery texbox .val() returns + sign for space

When we type 'a d' (a space d) the .val returns a+d using a plus sign. I need the actual string of 'a d'? How do I do this? HTML textbox <input type="text" name="term" value="" id="term" title="term" size="30px"/> JQuery function() { $('#results').load('search.aspx', $('#term').val()); } ...

How to blank the hidden field value from Jquery.

Assume that a hidden field <input type="hidden" id="hdn" name="hdn" value="100" /> So i want to blank the value of hidden field using Jquery. In javascript we can blank using this syntax document.getElementById("hdn").value = ''; but i want it using jquery. ...

How do I add different values to a Ajax Slider control?

I currently have a slider control that looks like this: <cc1:SliderExtender ID="sliderTest" runat="server" Enabled="True" TargetControlID="txtBoxTest" BoundControlID="lblTestSlider" Decimals="0" Maximum="10" Minimum="0" EnableHandleAnimation="true"> </cc1:SliderExtender> <asp:TextBox ID="txtBoxTest" runat="server"></asp:TextBox> <...

Is my code Jquery or AJAX?

I heard that AJAX use xml concept. But I had some doubt that whether the following code is JQUERY or AJAX. Find it for me. Give me differences between Jquery and AJAX $(".changepass").click(function() { $(".loading").show(); $(".block1").load("views/changepass.template.php", function(){ $(".loading").hide(); }); return false; ...

validating 1 input of multiple inputs using jquery

I've got multiple input fields where they have the same class names. I need to check to make sure at least 1 of them isn't empty. So I've got, $('form[name=expForm]').submit(function(){ var msg = ""; var found = false; $('.date-mask').each(function(){ if($(this).val()){ found = true; } }); if (found != true) { msg += "P...

Show/Hide deep tables

I've got this bit of JQUERY: <script> function initNav() { $('.nav tr table td table').hide(); $('.nav .navheading').click( function() { $('.nav tr table td table').slideToggle('500'); } ); } $(document).ready(function() {initNav();}); </script> I've got a table for navigation which looks like the HTML...