• Howto call events after loading new html-elements by Ajax? | .live("load") .load() .on("load") ??

    I have a page with dropdowns of class "chooseObjectType " which is part of a set of form-elements. There is also a button which loads more of those form sets. On my dropdown, live("change") calls the correct event and gives me "Test 0 ". By clicking on the button which loads more of those dropdowns (.chooseObjectType), it does not call the onchange event as expected, so I wanted to use an "onload" event. Deseperately none of those Test1..3 works :( $(function(){   $(".chooseObjectType").live("load",
  • Convert a form script from jquery 1.4 to 1.5

    I would like to convert a script I found ... But I can not. It works with Jquery 1.5. But it no longer works with Jquery 1.6. Yet I tried jquery -migrate ( Migrate older jQuery code to jQuery 1.9+ ) . But without result ...  The script : $.post('', form.serialize(), function(msg) {         submitFlag = false;         overlay.hide();         $('span.errorIcon').remove();         if (msg.success) {             $('#formContainer, #mdiv, #contactboxfloat').fadeOut(function() {                 form.get(0).reset();
  • meging html files

    Hi All, I have 50+ html files with around 150+ pages (data-role=page) I want to load them at once, in fact i am ok with loading delay for first time load. but i dont want to keep 150+ pages in one html file is there a way of doing #include type mechanism ? 
  • Getting blank page when website is opened in iOS 8.3

    When I open my website in Safari with iOS 8.3, I get a blank page. I'm using the latest jQuery mobile library (1.4.5) and the website is displayed fine in iOS 7 and iOS 9. If I commented out the code that loads jQuery mobile script, the website is displayed but without the effects of the jQuery library. Any help is appreciated. Thanks.
  • JQuery Context Menu Hover Sub-Menu Closing Issue?

    Right Click and open context menu then open the sub menu. Click on outside of Context menu without closing of sub menu.Context menu is close. Again right click and open context menu still sub menu is in open state. Please any buddy help me to find out the solution of this issue. Thank you in advance.
  • Error in odata ajax call

    I have an $.ajax call in one of my html page: var query = ODATA QUERY jQuery.ajax({ dataType: 'jsonp', url: query, jsonpCallback: 'callback', success: callback, ajaxError : errore }); function callback(result) { } function errore() {console.log("errore"); } but if the query fails i get an errore in console (NetworkError: 400 Bad Request) but does not enter in the error function. Why?
  • download jquery dosn't work, big problem, so sad :-(

    Hello, i am new to jquery and want to work with it. But if i download jquery, i cant open it. There is just this: and when i want to open it, that happend : maybe you can help me with this problem. I am feeling so lost.
  • cant start with jquery, installation impossible, please help

    Hello, i am new to jquery an want to install it. I downloaded jquery from the jquery page an get this in my download folder: If i try to open it, it do not work and following happent: what is wrong with it? please can you help me? i am so frustrated :-(
  • Jquery ajax call in function return value is #document with result

    I need to remove #document tag from this resiult
  • Jquery min without vulnerabilities

    I need to know wich is the latest version of jquery min without vulnerabilities for upload to the latest version. I have this versions: 1.4.4.min.js 1.3.2.min.js 1.4.2.min.js 1.7.1.min.js  Please. THANKS!!!!!!!!!!!!!!
  • Validate: prepopulated fields

    Using jQuery validate plugin v1.14.0 for client-side validation. Sometimes fields can come pre-populated from the server, eg: <input type="email" name="email" id="email" required="required" value="aa@b.c" /> If I focus into this field and delete the email address I would expect to get a "This field is required " error message, but I don't. In fact not even the following sequence shows an error: - focus in - empty field - focus out - focus in - repopulate field with new (valid) value - focus out -
  • jquery commas

    hi i have numeric values in textbox like 1000 but i want to write it in currency format like 1,000 please help me out
  • load inside a textarea it the content of a text file

    I have a textarea and I want to load inside it the content of a text file. Can someone advise how to do it? Thx I. Sher
  • Issue in Draggable Control

    Draggable Is there any issue in "Draggable" control . I faced this error "Animation jQuery UI draggable element back to starting position".  Because I had to use this code to resolve this. Below code  reset float  to none in all the parent controls of the Draggable container $("#DraggableContainer").parents().each( function(){  $(this).css("float","none"); } )
  • How to Toggle Two Functions in jQuery

    Can you please take a look at this demo and let ma know how I can call/toggle two functions from outside of the toggle() function printConsole() { console.log("This is From Function A"); } function printAlert() { alert("This is From Function B"); } $("#toggler").toggle( printConsole(); printAlert(); ); <button id="toggler">Toggle Fnctions</button>
  • Jquery date validation for date of birth

    Currently working on jquery date picker validation. As per the Jquery documentation I managed to show from 1900 to 2015 Sep today date. But the validation should be in if the user age is less than 15 years it should say an alert says Your are not eligble. My Second concern is if i select the date for dob field automatically the errorred class was applied to date of issue field. Normally it should happen when i click the next button. Here is my jquery code Kindly help me var date = new Date(); var
  • change value in a cell

    Hi, I'm trying to achive this result: I have a table with some key/value (SKU/Quantity), by a some button I add a SKU Item to table.  Everything work fine, but If the SKU Item is in table I would like update the Quantity +1 TABLE: | SKU |  QTY | |A01   |    10  | |A02   |     5   | with my button now I add another A01 how to change the right quantity cell?  $("#comanda").find(".idart").each(function() {                                          idPiatto = $(this).html();                           
  • adding script into specific element

    hi, i want to know how do i merge different script into one that i can upload into file and put it in <head> section so i want to add this scriot into <div id = 'title-post'> //< div id = 'title-post' > var timestamp = "<data:post.dateHeader/>"; if (timestamp != "") {     var timesplit = timestamp.split(",");     var date_dayname = timesplit[0];     var date_daymonyear = timesplit[1] } this into < div class = 'n-ofday' > //< div class = 'n-ofday' > document.write(date_dayname); for < div class =
  • How to conbine my location with other markesr

    Hello guys, I'm trying to create a map page that will display my current location along with other markers, but I'm having some trouble creating it. More specisicly more specifically when I use the code aw it is The map doesn't load but when I remove the code that I have painted in blue then the map load normaly with the markers only.Here is the code that I'm using: var cityList = [                                 ['Il Posto', 37.6726818, 21.4383551, 1, 'img/grey.png'],                          
  • Infowindow

    Hello guys, I'm trying to create a google map page that with display hotels and I want that the infow window to contain the site of that hotel and when people click on it I want them to be linked to tat particular site. The code tha i used the below : var cityHotel = [ ['HOTEL OLYMPOS', 37.6740392, 21.4361431, 10, 'img/pink.png'], ['HOTEL MARILY', 37.675677, 21.436359, 11, 'img/pink.png'], ['HOTEL ΠΑΝΘΕΟΝ', 37.674106, 21.4372605, 12, 'img/pink.png'] ],  demoCenter = new google.maps.LatLng(37.6719964,21.4443562),
  • get the button name with document.getElementById

    hi, i want to develop a script on that i only have to set the names like this : <button name="1" id="url" onclick="myFunction()">1</button> <button name="2" id="url" onclick="myFunction()">2</button> <button name="3" id="url" onclick="myFunction()">3</button> <script> function myFunction() {     var $x = document.getElementById("url").getAttribute("name");         $.post("worker.php",         {         Page: $x         },         function(data){         $("#content1").html(data);         }        
  • How do I keep JQuery Slider Tabs from sliding automatically?

    I have a timeline style JQuery Slider on my site, but I want to go to each section manually. I set autoplay to false but its still not working. What am I doing wrong? You can see it here Thanks in advance!
  • Need help adjusting JS code to make content work after it's been dynamically loaded using AJAX

    I'm having an issue where, after dynamically attempting to load content in through AJAX, the content isn't responsive to the JS code that it used to be. Here's a jsfiddle of this navigation bar working *before* trying to dynamically loading it using AJAX... http://jsfiddle.net/neowot/m107L4mh/ (ignore that it's offset, lol) But now it's just nonresponsive. I asked for similar help before and attempted to add proper event handlers, but clearly I'm still struggling. Please help if you can. I'll try
  • html tag's disabled attr not working on ios

    $('.target').attr('disabled', 'disabled'), in my case, I want to disable a button by set it's disabled attribute as above sample code. it's works normally on PC(ie, and chrome), also works on android phone default browser. but, it's not works on ios phone. Is there anyone who ever encounter such issue?
  • button with image under text

    hello, I have been struggling to find a code or some options I could use to have a small text appear on top(not above) of the main button icon I tried zindexes too nothing works the strange thing is that the text span is declared after the icon, it should by default, to my understanding appear op to of this one please help thanks
  • IE11 jquery not working

    Hi I am working on this issue where my website working fine with all the browser and but on the some of the jquery related staff not working on IE 10 & IE11. I would appreciate if some one could point to the right direction for a fix.
  • IE 11 Issue with Jquery 1.7.1 while migrating

    Hi All, We are using Jquery 1.7.1 with IE 8 for a long time. We planned migrate to IE11. But we are getting the below error when we run our application. File: jquery-1.7.1.js Line No:1437 Code: delete div.test; Error: Object doesn't support this property or method I dont know how to resolve this issue.I tried with IE Enterprise mode but that also doesnot solve the problem. Can someone help me with this issue
  • body doesn't expand till the bottom of screen

    This is my site www.perfect-rehitim.co.il Suddenly I saw that body doesn't expand till the bottom of screen. There is a gap bellow the footer. What causes that and how to fix it? Is there a jQuery code to find out? Thx I. Sher
  • Position the tooltip

    Here is my code that implements tooltips in my website: var changeTooltipPosition = function(event) { var tooltipX = event.pageX - 8; var tooltipY = event.pageY + 8;   jQuery('div.tooltip').css({top: tooltipY, left: tooltipX,'z-index': '120000'}); }; This works fine and displays the tooltip as a popup window bellow and to the right of the cursor while hoovering the button. I'd like to modify the code so that the tooltip will appear just above the cursor(and the button, no change to the x dimension).
  • Strange results with autocomplete

    I plopped an input box with auto-complete turned on and a search button on my page. My friend created some JS code to allow the auto-complete to access an array of kit names. Well, it works perfectly except for the list it generates. The list is correct and clickable but the text itself is just floating over the page content (in this case the search button). It looks kinda bazaar and is transparent in terms of the search button is clickable through the floating text. What are we missing here?  Here
  • json not populating fields

    Hello sir This might be silly question. I can populate the form fields using JSON I select a client from dropdown and based on its value (id) i call JSON and populate the respective fields   what if the the client id  selected from dropdown is zero (normally starting item with id=0 like pleases select) )    My Json where to put the initialization code so as to blank the fields populated earlier  $('#clientid').change( function() { //change ID when selected from dropdown  alert(   $('#clientid').val());
  • J Query Date Picker Condition

    Hi All,  I need to display a j Query Date Picker where we have to show today and tomorrow date but if today is Saturday then i have to show Monday date also Please suggest
  • Number of jquery errors

    Hi all, Been building a wordpress website using alot of jQuery and parts aren't working, I have tried to diagnose but had no success. I get the following errors; Can anyone else? 
  • Datepicker prev / next buttons appearing distorted.

    I just created a custom jquery ui package and tweaked few colors, but now when I implement datepicker (with no options), the previous and next buttons appear to clumsily overlap each other. Is there some css tweak I need to use to get them to appear neatly? I've used this before plenty of time and it never required anymore than choosing colors, dropping links to the css and js on the page and using the default constructor with no arguments. Please help. Trying to wrap up a project, thanks!
  • Going Crazy - Trying to populate Multi-Select with JSON from Ajax

    I'm completely stumped. If I use returned data from a JQ object, my multi-select will not select the current options: SO THIS DOES NOT WORK: $("#truck_type").val(data.truck_type); If I hard code, it works and it's exactly the same as the value of data.truck_type $("#truck_type").val(["Tandem","Van Trailer"]); Anyone have any idea?
  • How do I make header bar opaque

    I have a page with a header bar that contains the HTML title and a Home button. On a long page that scrolls, the header stays in the same place and the text scrolls under it, which is what I want. But the header is transparent and the text is visible under the header as it scrolls past. I want an opaque header, what do I need to change in CSS? I'm using JQM 1.4.5. The top part of my HTML looks like this: <!DOCTYPE html SYSTEM "about:legacy-compat"> <html> <head> <meta http-equiv="Content-Type" content="text/html;
  • Autofocus for input text field, Urgent

    I want autofus for text field which i am using for search. This is coming in desktop and android browsers, but it's not working in ios app and safari browser. Help me. Thank you.
  • Draggable widget/function in jQueryMobile

    Is there such draggable api in jQueryMobile, similar withe the draggable in jQueryUI. As below sample code: $(function() { $( "#draggable" ).draggable(); });
  • Posistion of window on postback

    I'm using ASP.NET forms to create my pages. When I use dynamic data the data is created below the button submitted. Filling a gridview for example. I would like to re-position the window at the top of new data not the top of the page. I have ajax turned off for the page. I have tried Javascript, A anchors, and the MaintainScrollPositionOnPostback in the header. Any help would be appreciated.
  • Jquery Menu disable depending on User Permission

    I have Jquery menu which should disabled depending upon user permission. In the below menu  I get the Permission value in label and depending on 0 Stockentry.aspx,Internalsale.aspx,Vehiclesale.aspx should be disabled and value if 1 all menu should be enabled. Thanks <ul class="nav"> <li> <a href="Home.aspx">Home</a> </li> <li> <a href="VehicleEnquiry.aspx">Vehicle Enquiry</a> </li> <li> <a href="StockEntry.aspx">Purchase Vehicle</a> </li> <li> <a href="InternalSale.aspx">Internal Sale</a> </li> <li>
  • 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