• Question about live('click change')...

    I've attached a click handler to checkbox label, so when you click it, it checks the checkbox. I also have an event handler bound to the checkbox itself. However, the checkbox event handler only fires when you click it, not when you click the label text (which does actually check the box):       http://jsfiddle.net/ZBVnz/3/ Can someone tell me what I am doing wrong? Thanks. ...René
  • Disable TextArea on Page Load using JQuery

    Hello Group,   Simple question.  How can I disable a textarea when a page is loaded(and re-enable it on a button click).   I have tried several things with no luck. What I have tried is at the bottom. Here is my code snippets:   ' code to generate the text area  <%=Html.TextAreaFor(Function(model) model.NewestComment.Comment, 2, 60, New With {.id = "comment"})%>     ' JQuery Code I have tried to disable it.... <script type="text/javascript"> $(document).ready(function() { $("NewestComment.Comment").attr("disabled",
  • Populate treeview

    Hi, I need to develop a webpage that loads a structure of products. I managed to do this using PHP and JS, but many details are still lacking. I found some topics about jQuery and treeview, but I still did not find a code what if it adapts my necessities. I am going to explain better:  1. each product can be a son of more than a product; 2. over there to show the structures, in the same page there is a box of text for search. While finding the text and he will be in the precise structure to detach
  • hide/Show methods

    Hello I use use "hide and show" to show and hide a ul. First when the document is loaded. And when i click on link. I want to let the ul showed ou hidden when the page is reloaded. Is it possible : My code :    $(function() {                                       $("ul li").hide();                              $("link").click(function() {                                  $("ul li").toggle("normal");                                               });                     });        
  • How to stop drop down from listing all sub menus?

    Hi - Please see this link to my site. If you hover over the 'Shop' menu in the main navigation, all of the second sub menus appear under 'Illustration', 'Apparel', 'Lifestlye', but then jump back when you hover over each sub menu. I would just like list the 'Illustration', 'Apparel', 'Lifestlye', menus to appear when you hover over the parent 'Shop' menu but then reveal each second sub menu in turn when you hover over their respective sub menus. Can anyone help? Hope that makes sense. If you look
  • jQuery.browser

    It's a shame that jQuery.browser will be moved to a plugin in a future release of jQuery as jQuery.support is not sufficient to cover all cases where jQuery.browser is needed. The most recent examples I encountered were: IE css filters html5 support css3 support I hope it might be reconsidered?
  • Not working

    jQuerry doesn't seem to be responding when I preview it in Firefox!!! What can I do?
  • Autocomplete problem with a large database

    I am new to jQuery and I am trying to create an autocomplete textbox. When I use a small test database, it works fine but when I use my production database with over 3000 records, it slows to a crawl. It take >20 seconds to load the page and with each letter I type (even though I set minChars to 3), the browser times out asking if I want to continue running the script. My feeling is I need to use AJAX but I have never done that and don't know how to. I code in classic ASP with an Access database.
  • jquery does no work well in lbi file...... someone help me...

    I'm trying to add jquery(http://www.i-marco.nl/weblog/jquery-accordion-menu/) in the lbi file, and the lbi is one part in the dwt file (Main template). Everything works fine, there are only one jquery effect can't work, the submenu under the main menu can't show out...Below are the script that I done for lbi file & dwt file, no sure which part I have make mistake... Anyone HELP? Many Thanks! Lbi script:  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> {insert_scripts files='jquery-1.2.1.min.js,menu-collapsed.js'}
  • jQuery and .contentEditable

    Hello, I'm trying to make my own small CMS system, but I'm facing the problem that I can't seem to set a div's contentEditable to "true"in jQuery. When I write this it works: document.getElementById("contentDiv").contentEditable = "true"; But I would like to write it all in jQuery, so I tried this: $("#contentDiv").contentEditable = "true"; That didn't work. I tried a few more possible functions but none of them worked. Is there a specific jQuery function for this? Regards, Bart
  • Missing replies?

    Some of the discussions seem to be losing their replies....or is it just me.
  • jQuerry not responding

    Hi! I just started practicing today jQuerry, followed all the instructions, CSS is working, but jQuerry is not responding, what do I have to do? I did put jQuerry in the same file... <html lang="en"> <head>     <title>jQuerry tutorial 01</title>     <script src="jquerry-1.2.6.pack.js" type="text/javascript"></script>         <style type="text/css">     #box { background: red;         width: 300px;         height: 300px; }     </style>         <script type="text/javascript">         $(function() {
  • jquery after php include

    Hi,   First off all, JQuery is great! :D   I use jquery to navigate through menus and load the related pages into a target div.   So, onclick of the menu, is calling a php to do an include of the html page that I want. Inside that included html, it has some more jquery functions related to images and so on...    Everything is good with IE7/8 and Chrome but with Firefox, the jquery functions are not working...   I've made a test page for you to help (pleeeeaaase):   http://www.altersorte.com/test
  • Internet explorer 7 behavior - add option to the select onclick of the same select.

    hello, I am trying to append an option dynamically to select onclick of itself as in following code. On Firefox it works fine. When clicked on select, it momentarily shows 2 options and it appends the new option. But in Internet explorer 7, onclick of select, the list is collapsed. When clicked again, it shows the 3rd option appended. The firefox doesnt do the select collapse. I want to have the same behavior in IE7. Is something missing? TIA, Vipul Code: <head> <script> var done = false; $(document).ready(function(){
  • jQuery :: How to get Ajax readyStates?

    Hi all, I have some problems with getting jquery $.ajax(); readyStates value. I used this: var xhr, jqXHR; xhr = $.ajax({     url: ajaxurl,     cache: false,     beforeSend: function(jqXHR){         jqXHR.onreadystatechange=stateChanged();     },     success: function(html){         //some codes..     } }); function stateChanged() { alert(xhr); alert(xhr.ReadyState); alert( jqXHR.ReadyState); }stateChanged function always return undefined. Can Anybody help me? Thank you Bahram0110
  • Code design

    Hi,  I wonder if it is necessary to first check if an element exists before manipulate it? For example: if ( $('#item_123').length === 1 ) {       $('#item_123').remove(); } Or can you simple use whether the item actually exist or not? $('#item_123').remove(); I know it both works, but what is the proper way to go? Christophe http://www.opera.com/
  • [Double Tapping] trouble

    HI all I am building an application in jquery mobile and javascript, i have an unique page named index.php, in this page i have defined many divs with the atribute [data-role ="page"] to navigate between pages... All work perfectly but i have a weird trouble, some times in the navigation links i click twice in the same link, when i did that, all pages lost [ui-page-active] class and my screen displays a white page... Because there aren't active pages... So, how can i solve it??? any idea?? thanks..
  • Problem with Clone()

    Hey JPeople,       I am trying to clone an <img> when i hover a mouse over it..code goes like this..         function onHover(sender)       {         var targetObj = $("#"+sender.id).clone();         $("#"+targetObj.id).width = "550";   // targetObj.id is undefined.       }               Now the problem is that  i am getting the above message when i debug the application...Can anyone help me out.....It seems that JQuery cannot get the id somehow....
  • 2 Newbie questions

    Hey there, first of all i want to thank anyone that answers my question. The first one is JQuery related. I am wondering,can someone explain me what this does, and whats the syntax of it? $("a").click(function () { $("div").fadeIn(3000, function () { $("div").fadeIn(100); }); }); I dont understand what that second function does :/ I this case i would use mouseover().fadeIn(3000) and then onother one mouseout(fadeOut(100). Thats why i am not getting and how to use it. Second one,do you know any site
  • find and replace an email...

    Hi all, I was wondering if its possible to use jQuery to find and remove/replace an email address from a textarea input  either before the form is submitted or after? Examples or suggestions? Thanks in advance Dimitris
  • Querying MySQL and displaying results in Table

    Hello, I am absolutely new to Javascript, jQuery, PHP. What I want to do is let the user input a file, then read the contents send it to the server, loop over the inputs to query MySQL, return the results and display it in a user friendly, scrollable table? How can I use JavaScript/jQuery for this? Any kind of help would be great. Thanks -Yogesh
  • Navigation Problem Internal pages X#Y instead of #Y

    Hi, I'm using jQMA3, phonegap0.9.2 and jquery1.4.4. I have just one html document (index.html) with several internal pages. Sometimes in testing the application, when clicking through the internal pages I get an navigation error. JQM tries to navigate to www/page-X#page-Y instead of www/index.html#page-Y I use only internal pages links like (e.g. <a href="#page-Y" ... Both as buttons and in footer navbars. The error seems to be non deterministic. It happened on Android 2.1 and 2.2 in the emulator
  • Refresh mouse graph

    I am changing css cursor of a div, but the change is only visible when mouse moves, ¿How can I force refresh mouse graph?
  • jQTouch only an empty page

    Hello I tried to create a testpage with the jQTouch plugin, but I don't get it to work. I got only an empty page. This is because there is a css statement body > *{display:none}, so all elements disappear. Now the first element should get the attribute class="current", to show it, but it won't be set. Does anyone see the mistake I've done? I've attached my small project. Thank you.
  • Linking datepicker and selectable

    Hi all, For my development, I would like to know if there is a way to overload a datepicker with a selectable object. Indeed, I would like to have the datepicker layout, but I would like also to be able to select multiple ranges of days. I'm currently using a selectable object only, but I was just hesitating to merge the selectable code into the datepicker one : 1. I loose the possibility to upgrade to a higher version of jquery 2. I duplicate the selectable code Did you have the concern of using
  • Problem with jstree

    Hi all, few days ago i try to implement a tree with jquery and jstree plugin in my web application. now i have a little problem (i hope :) ), the problem is when i use this code in jsp page the plugin work correctly <script type="text/javascript">                      $("#gruppoTree").jstree({                         "core" : { "initially_open" : [ "root" ] },                         "html_data" : {                             "data" : "<li id='predef_1' class='open' style='padding-left:50px'><div
  • problem with jquery window/iframe !!

    hello...I  have problem with jquery window..... I wanto include inputform into footer content and make it post using jquery or ajax but I always failed.... here is  link of my site my site link here is jquery to post $(document).ready(function() {     $('#myForm').submit(function() {         $.ajax({             type: 'POST',             url: $(this).attr('action'),             data: $(this).serialize(),             success: function(data) {                 $('#result').html(data);setInterval(this,2000);document.myForm.reset();
  • Using autocomplete with dinamical created form

    I have some problem with using autocomplete. I have form which describe company. The user insert information about this company into database. But different comanies have different amount of owners. I create some function to give user posibility to add multiple owners via dinamical adding row into table. But autocomplete with new fields doesn't work $(document).ready(function() { ..............................       function addOwnerRow()       {             var count=$("#tbody > tr");            
  • jquery Library1.5 inclusion issue

    Hi,    I am using jquery version(jquery-1.5). I am receiving the error as      elem is undefined     for the condition if ( elem.nodeName ) { for the below part inside the library // A method for determining if a DOM node can handle the data expando  acceptData: function( elem ) {  if ( elem.nodeName ) {  var match = jQuery.noData[ elem.nodeName.toLowerCase() ];  if ( match ) {  return !(match === true || elem.getAttribute("classid") !== match);  }  }  return true;} Can any one guide me please what
  • Not working

    jquerry is not working! Do I have to add something else?
  • click, submit and submitHandler from validation plugin

    Hello, I'm new in js/jquery, and I have a question I can't solved yet. I have some page with lot of forms (20 per page), this forms are always the same, because is for reply comments directly in these page. (like wordpress comment manage page). The forms id are: commentresponder-XXXX (XXXX = comment id). I'm getting lot of problem handled individually each form. I don't use submit button, i have a link which do submit function. Into <form..></form> the link look like: <a id="fbotonsendcom-XXXX" class="boton"
  • Datepicker passing parameters on select/close?

    When datepicker closes the calendar window I'd like to pass both the date and the id of the <input> tag in the code below.  The documentation mentions 'this' but no info on how to use it or how to use 'inst'.  Thanks! $( "#testdate" ).datepicker({    changeMonth: true,    changeYear: true,    onClose: function(dateText, inst) { passvals(dateText,inst); }   });  }); <input type='text' id='testdate' name='testdate'>
  • [jQuery] Filter list, not table

    I have found many nice filter plugins, that let you filter a table, and hide the rest of the items, and only show the item that matches what was entered into an input dialog. What I would like to do, is use an unordered list instead. Is there any plugins that support this? I have not been able to find any..
  • how to stop regular form POST if jquery is working.

    <form id="mybasketform-add" method="post" action="<?= site_url('mybasket/add') ?>">                 <input type="text" name="productID" id="productID">                 <input type="text" name="quantity" id="quantity">                         <input type="submit" value="Add to basket" id="add">  </form> I'm trying to write an app that degrades if jquery is not supported. For example I've got the snippet above. Which works fine via regular post (when I have no  jquery) but the problem is that when
  • Autocomplete menu issue

    I'm noticing a weird issue when using autocomplete with a remote datasource that takes a bit of time to return. (Noticed in jQuery UI 1.8.9) If you've typed some text, and then move your mouse around on the menu while waiting for the source to return some data, the input value is reverted back to what it was before the last data request. For example, with a datasource that takes a couple seconds to return: -type some text, and wait a couple seconds -a menu appears with some options -type some more
  • post() to variable URL

    I am a newbie to JQuery. I have managed to get a lot of what I want working but this one has me stumped so any help would be appreciated. In my Symfony project I have a form that loads a new data table into a div based on a url (actually the route to a symfony partial/action) with the parameters for the query serialized() with the post. Now I want to be able to change the same area to display graphs so I need to post the same information but to a different url. My script looks like; $(document).ready(function(){
  • How to reset first position before using animate left

    Hi, i'm really new for jquery, i search over the internet about jquery, and start to learn. My problem maybe seems silly, I want to make 3 panel that functionally like we browse files in mac. I already suceed made 2 panel, the problem is, at the first load, the second panel already shown. I want it keep hide, until people clicked the button.  This what i have, (please click the home text) http://gemvisual.com/exp/ This the complete script <html> <head> <style type="text/css" media="screen"> html,
  • Before unload for Elements

    Hi all,          Any body know for beforeunload for event (div-unload).Not for window or document. Thanks by M.Maheshrajkumar.
  • Setting a jQuery event on a specific hyperlink for onClick.

    I have a specific hyperlink defined like this: <a id="shesaid" href="">Click to read more...</a> What I want to do is set up an event so that when a user clicks the hyperlink I can do some jQuery work on the page. How can this be done in jQuery? Thank you!
  • strange problem.. remove()append options to listbox is not visible on screen until I mouse over the listbox.. .?

    Internet explorer 8 windows 7 classic asp page   problem does not exist in firefox.   when i do a remove().append to add options.. I cannot see my changes until i run mouse over the listbox??   thanks
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of