• How to get the telephone code of a country detected geonames ?

    Hello, I use the function of Geonames to locate countries where we connect. And my problem is that I have to fill in a phone number field at the beginning with a telephone code, this telephone code depends of the country. In my solution, the code works if I select a country, but when the page is initially charged (detected by Geonames country), the country is displayed but I do not get the phone code. What is the solution? Example : country = FRANCE telephone code = +33 In my code : country = FRANCE
  • .filter() vs. .find() on detached elements

    I have detached a set of elements and am trying to unhide them. I could swear the selector/context version has been working but suddenly stopped. Now only the .filter() version works. var $currentSchedule = _$classSchedules.children().detach(); //Unhide any elements that were hidden by filters $(".filter-hidden", $currentSchedule).show().removeClass("filter-hidden");  //Does not work $currentSchedule.filter(".filter-hidden").show().removeClass("filter-hidden"); //Works I've read someone explaining
  • jquery.mobile css overriding my own css

    I generated my own css via the Theme Roller app at themeroller.jquerymobile.com, but jquery.mobile-1.3.0-beta.1.min.css overrides all the background colors. What am I doing wrong?
  • A few easy questions

    Hello, everyone, The question is rather simple. How do I ( with example, please ) ; 1. Create a simple update/delete user interface 2. Use at least one jQuery UI, such as sortable, draggable, dialog,... ) 3. Add a jQuery animation Thank you in advance! :D $(document).ready(function(){  var API=" http://193.246.33.24/data/ "  var users = $("#users");  $.get(API, {user:13}, function(data){  $.each(data, function(i, usr){  addUser(usr);  });  });  function addUser(usr){  users.append("<tr data-id="
  • Checbox help

    Hello, I have this code here. http://jsfiddle.net/max33/8wr7rjLj/  I have 3 issues which I can't solve. 1) When a checkbox is unchecked, the all highlights should be clear. 2) I  can't select and highlight more than one parameter. 3) I'd like to have select all and unselect all too. Can someone help me or guide me. I am a newbie on jquery. thanks.
  • How to create rollover news section for my website?

    Hi guys, I'm trying to find a rollover news for my website http://www.luxotime.com . If you look at the bottom of my homepage there is a news or some articles which updates. I would like to show only 1 row of article but want it automatically scroll or rolling to next article automatically each 30 seconds for e.g. Is it possible to do that with JQuery? A sample code will be appreciated. Thanks in advance.
  • paste text from the clipborad into a file

    I need to paste text from the clipborad into a file. Is that possible and how? Regards I. Lesher
  • Return a number instead of an object?

    Hello.  I am trying to build a price calculator that changes based on when a person chooses a product or increases their quantity. Everything seems to be working, but I'm getting [object Object] instead of numbers. I'm not understanding how to make "return fry;", or "return leela;" give me a number instead of an object. Thanks, jQuery(document).ready(function(){         var qtyCode = jQuery('.qtyswitcher-qty').html();         var price = jQuery('.switcher-pb_product_size .switcher-label').click(function(){
  • jQuery Ui Tooltip Not Working on Raphaël.js

    Can you please take a look at This Demo and let me know why the tooltip is not showing on the path on mouse over using jquery Ui and Raphael.js? <div id="canvasDiv"></div> $(function () { var paper = Raphael(0, 0, 500, 500); var d = "M90,90l-80,-20L50,5L90,90"; var tri = paper.path(d).attr({ "fill": "yellow", "stroke-width": 5, "stroke-linejoin": "round", "title": "Show Me The Tooltip!" }); $(tri).tooltip(); });
  • How to prevent autofocus on first input when clicking a link on popup in jQuery Mobile

    I have a textarea and a link in a jQuery Mobile popup. When I click link, textarea gets focused automatically and keypad is showing. (on ios) I wanted to redirect to another page by clicking the link, but before it redirects, keypad is showing which is not necessary as I don't want to change any text. I checked jQuery Mobile 1.4.5 demo page but it has same issue: http://demos.jquerymobile.com/1.4.5/popup/ But it seems 1.3.1 has no such issue. Please help me!!!
  • TV wave warp effect

    Is this effect possible with jQuery ?
  • Button text change via click event and sending geo data

    Hello guys I am new to jQuery and developing an app for a tablet with geolocations. I have a question about a button text I want to change. I have a button named vlock with the text "Lock". If I click the button the text should change to "Unlock" and the current position should be send to a msg box. So I can change the button from "Lock" to "Unlock" once! But this should be change whenever the button is clicked. also I could not get it working to send the geo data in a msg box. maybe someone here
  • JQuery Dialog Position Problem

    I am using Google Maps in page. I want to set the positon right bottom of google maps. But scroll bar occurs. How can I solve this problem         position: {              my: "right bottom",              at: "right bottom",              of: "#google_map" },
  • Superfish / hoverIntent Wacky Behavior - What Broke?

    Hi all, I took over the maintenance of an existing Wordpress site that I did not create. It's original code is older, probably around 2010 or so. When I moved it to current Wordpress, a jQuery / Superfish slider on the homepage broke. It works but on page load, it slides constantly and not necessarily correctly. It eventually completes its cycles (it seems) and then behaves properly with mouse clicks.  My JS is really rusty and I'm not real familiar with jQuery much less Superfish, so I'm hoping
  • Copying html from zeroclipboard

    Hi; I use zeroclipboard to copy text to clipboard. I want to copy and paste"SOMETHING" in any email clients email signature box with the css we apply to it. Can we copy to clipboard rendered html?can you make it so that the footer is in a copy box. i.e when you select you just get the content of the box? This is the button <button id="copy-button" data-clipboard-text='<?php echo $copy;?>' >Copy to Clipboard</button> But I get this: First name: wda Last name: asd Company: sd Position: asd Promotional
  • This is the ugliest page I have ever seen! Does anyone care about this forum?

    Hi; First of all, I love Jake. I come back here because of him. Incredible dude. But take a look at this login page of the forum ! Are you serious? A drunk 4 year old can do a better design. The buttons are ugly and out of order, in wrong places. I think you should spend few hours and fix the design. The forum is too good to have such an ugly entrance! Cheers
  • value of text boxed within table tr should not contain same value

    if i have <table id=tbl> <tr> <td> <input type=text  name=nm1> </td> </tr> <tr> <td> <input type=text  name=nm2> </td> </tr> <tr> <td> <input type=text  name=nm3> </td> </tr> </table>
  • need a new st of eyes on this

    Hi All, i like another set of eyes on this I can not get this to work Thanks Link to page http://n9mfk.info/newidea/myindex.html Link to code http://n9mfk.info/newidea/js/mydashboard.js Uncaught SyntaxError: Unexpected end of input line 1 mydashboaad,js $(document).ready(function() {        });     infiniteLoop(); function infiniteLoop() {     var updateTimer;     $.ajax({         url: './realtime2.php',         dataType: 'json',         success: function(data) {             function updateTimeout()
  • Question about JQuery UI Theme Roller

    The following pertains to the datepicker. I've found the theme roller to be very useful, but I have a question about implementing a theme. The downloaded theme folder contains folders named "external" and "images".  "external" has a subfolder named "jquery", which contains a file, "jquery.js", which seems to contain a copy of jquery v1.10.2. I've figured out that "images" needs to be a subfolder of whatever folder that contains the CSS. But where does the "external" folder go?  Not including it anywhere
  • jQuery (validate) using latest jQuery 2.14 & validate 1.13.1, validate.settings undefined

    I have a simple form  no HTML rules using latest bootstrap. Tested on jQ 2.14 and 1.11.3 min and not minimized, Validate 1.13.0, form is fully loaded when this executes. .valid() says true even if required fields are missing Error appears when I type on field, or exit a field, not when initiating validate instantiated with: myvalidator=$('#areas_Create_modal').validate({ rules: { area_name_EN: {required: true},area_name_ES: {required: true}} }); myvalidator on console shows: myvalidator.settings
  • How To rotate arrows onclick in menu?

    hello, based on this topic (https://forum.jquery.com/topic/creating-a-jquery-mobile-menu-with-toggle-submenus ) I create my menu, but I don’t know how to change arrow from ▼ to ►  when its clicked. can someone tell me? edit: online demo added: http://jsfiddle.net/sabeti05/4cp9f056/2/
  • data-rel="back" not working after upgrading JQM from 1.2.1 to 1.4.5

    Hi, We are in process of upgrading our project from JQM 1.2.1 to JQM 1.4.5. After upgrading, navigating to back page stopped working. Our project is in MVC and Back button is added as below in Layout page. <a href="#" data-rel="back" data-role="button" data-inline="true">back</a> data-rel=back supposed to ignore href value, and navigate back to previous page, right? It's not behaving in this way in JQM 1.4.5, it was working in JQM 1.2.1. What am I missing here? Please someone help me to fix this...
  • Excel like column filter to data table is not working in firefox(Working in IE)

    Hi, I m using JQuery data table to display data and applying excel like filter to data table header using   jquery.dataTables.columnFilter.js. It is working in IE but not working in Firefox browser.
  • How to use Ajax DataType "JSONP XML"

    Hello my friend, I'm a newbie in Jquery. I have a project that use Ajax to read XML from another domain (cross domain). I tried to read by normal way but no luck. And i discover DataType in Jquery 1.5 is "JSONP XML". But i can't use it.  This is my code:  $(document).ready(                 function () {                     var ok, ok1, ok2, ok3, ok4, ok5, ok6, ok7, ok8                     setInterval(function () {                         $.ajax({                             crossDomain: true,    
  • Why is event parameter forgotten after recursion?

    Consider the following code: <html> <head> <meta charset="UTF-8"> <title>title...</title> <link type="text/css" rel="stylesheet" href="jquery-ui-1.10.4.custom.css" /> <script type="text/javascript" src="jquery-1.10.2.js"></script> <script type="text/javascript" src="jquery-ui-1.10.4.custom.min.js"></script> </head> <body> <div id="dialog1" style="display: none"> <p>some text</p> </div> <input id="but1" type="button" value="clickme" /> </body> <script> $("#but1").on ('click', {valu: 1}, f); $("#dialog1").dialog({
  • rich text field with image

    Hello, i wanted to know how to determine rich text fields state (null / not null) if it contains only an image.
  • jquery animation

    How to animate an element in jquery
  • Creating a jQuery mobile menu with toggle submenus

    Hi I would love to create a vertical menu for mobile devices. As we know, mobile devices don’t yet support hovers used for the display of sub menus.  I would love to give mobile users the ability to click on the main portion of the parent menu item to link to the item page. To toggle down (and up) submenus the user has to click on the arrow area on the right of the button where I appended a transparent <span> area. This process is very important in mobile web design as it gives mobile users the ability
  • Timing and speed of multiple sliding divs

    Please see this  fiddle I have set up. You are first confronted by three links. Each link triggers divs to slide out. The link 'john smith' slides out and in at the speed we want. When it slides out the first line slides out then when that is completed the second line slides down as though coming from the first. When it slides back it does the same motion at the same speed but reverse i.e.. the second line slide back up first and then when that is completed the first line slides back to the left. 
  • move the contents of a div to another div

    I have a div structure such that: <div id="MainDiv"> <div id="fromDiv"> <div id="NewContents"> </div> </div> <div id="toDiv"> <div id="ExisitngContents"> </div> </div> </div> Now i want the jquery to move(append) the NewContents from fromDiv to toDiv such that the new structure will be <div id="MainDiv"> <div id="fromDiv"> </div> <div id="toDiv"> <div id="ExisitngContents"> </div> <div id="NewContents"> </div> </div> </div>
  • Draggable "connectToSortable" option, not working in ember.js

    Hello everyone. I am a Ruby on Rails developer and recently I started working with ember.js. I tried to use draggable and sortable, and everything works fine besides the "connectToSortable" feature of draggable.  I have a sortable list that works as any sortable should, I have a set of draggable items that do everything they should de, except that they cannot be added to the sortable list, despite the fact that I have given the option "connectToSortable". I have no typos and the given element is
  • How do I insert when a given in the search field and if it does not aperecer type a select ...

    How do I insert when a given in the search field and it does not exist aperecer type a select with a button where I can add that given in the table where did the research , as shown. Note : The search filter longer works.
  • Using Lazy Load for loading Divs?

    Hi, All tutorials bout using Lazyload are talking about loading images. Is there any Lazyload plugin that can be used for loading Divs? Thanks
  • By first Click; hide an element immediately and by second click show it again after 3 seconds

    Hi, I want to achieve that when I click on a button the caption of my slider hides immediately and a second click on the button shows the slider caption after 3 seconds delay. I tries this code: <style>.hide: display:none;</style> ("#hamburger-menu").click(function() {          $(".slider .caption").each(function() {       var kir = $(this);       if( kir.hasClass("hide") ) {         setTimeout( "kir.removeClass('hide');",3000 );       }       else {         kir.addClass("hide");       }         
  • Need collapsible widget only but custom package not working

    I just want to use the collapsible feature of jQuery mobile. Using the custom download interface I selected that widget, downloaded the code (two css and one js), and installed. It's not working, tho, so I'm wondering if I'm missing another step? Another file(s)? It looks like the "picker" selects the necessary dependencies, so I assume  everything I need is included in the download? http://farbest.com.s200192.gridserver.com/ingredients TIA
  • slide show cycle.js

     I am trying to create a slide show similar to http://www.lazinc.com/ but I need the spritemap.png for the next and previous images. Where on earth can I download it from? I can't find it anywhere. Thanks
  • Mozilla firefox issue with keyboard events

    Yesterday, I posted this and was told that I should use event.which instead of event.keyCode for keyboard events, and that was good. But even after switching to using 'which', there is still an issue, and it is only with Mozilla Firefox 38.0.1 -- the backspace key isn't working. If you try the following code on IE, Chrome, and Opera, you will be able to type in letters and backspacing as well, but not with Mozilla Firefox: <!DOCTYPE html> <html> <head> <title></title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  • Accessing Id's created by s:iterator

    Hi, I have Id's like below: id =" Test_List_0_test1 " id="Test_List_1_test1" id="Test_List_2_test1" Which are generated when I use s:iterator with the List. I want to loop through these Id's in Jquery.. How can I get the handle to these objects/ value. I need to do some validation based on the values
  • Mozilla Firefox 38.0.1 not compatible with jQuery???

    This is weird. The following code snippet works fine with the latest versions of IE, Chrome, and Opera, but will not work with the latest Mozilla Firefox ver. 38.0.1. Can someone please tell me why?? Could this be a jQuery issue?? The code snippet is right below. <!DOCTYPE html> <html> <head> <title></title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script>     $(function() {         var sAllowableCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  • Click not working on dynamic div

    Dear jQuery Forum, I'm trying to perform a click function inside a dynamically loaded div. I've looked and implemented many of the tactics I've run into and none of them are working The code that I'm running to load the div: $ ( window ). load ( function (){ function showitusers () { $ ( "#creatorsettingsdiv" ). load ( 'http://XX.XX.XX.XX/quizzes/js/creatorusersdiv.php' ); } $ ( "#creatorsettingsusersbutton" ). click ( function () { var usersvar = showitusers (); }); }); This loads creatorusersdiv.php
  • 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