• buttonMarkup vs button

    buttonMarkup is marked as deprecated from version 1.4 (discussed elsewhere), but the documented equivalent using button("option", ...) does not appear to work. I have four colour buttons and want to move the check mark to the one that's just been clicked (a little odd, but it works fine for users). The following code works:             for (var _i = 0; 4 > _i; _i += 1) {                 if (baseColour === _i) {                     $(COLOUR_BUTTON_IDS[_i]).buttonMarkup({ icon: 'check', iconpos: 'left'
  • how to add slide menu

    Hi   I have a vBulletin forum. I want to add slide menu like facebook. can you help me to make it, please.   i found this site http://mmenu.frebsite.nl/, but i don't know how put it in my forum      
  • Newbie to jquery

    Hi all I am facing problem in the below mentioned code .It is not showing me the alertbox saying "hello". Please suggest the improvement. <html> <head> <script src="jquery-1.11.0.min.js"></script> </head> <body> <div class = "xx1"> John Mragegert </div> <div class = "xx2"> THOMSON </div> <div class = "xx3"> goosi John harvard</div> </body> <script> $(document).ready(function() { if($.contains(this,document.getElementsByClassName("xx1"))){ alert("hello"); } }); </script> </html>
  • elegant js polling routine?

    Hello, I have a requirement where I need to poll the database via ajax from js to check for a status.  If the status is "active" then the polling should stop and an alert should popup "case is now active." The js should check the db every 2 seconds until the db status returns "active."  Can you provide an elegant js routine for this?  Here's some general js to show what I want to do: function ReportAsActivePoll() {    for(var i=0; i<10; i++)    {        setTimeout(StatusIsActive,(i*2000));      
  • how to start Jquery ?

    which section to begin J query ?
  • combination problem horizontal menu highlight and arrows navigation

    Hey there, I have an issue in my jquery script. I did menu with button navigation under it. The problem is : when I click on About item on the menu and then I click on the next button I'm not in the good item menu. For example, if I click on About item and then on the next button I should be on Contact item but it's not the case. This is my fiddle link : http://jsfiddle.net/jarod51/drQ79/4/ <div id="cssmenu"> <ul id="list"> <li class='active'><a id="testSlide1" href='#'><span>Home</span></a></li>
  • Android studio for Jquerymobile

    Are there described steps necessary to create an apk with android studio from a jquery mobile project? jqm and "android studio" do not get found together in google.
  • Jquery Touchstart & Click Question

    Hi all I have two functions below. One detects of the user has "clicked" a menu item and one is if a user "touches" the menu item. The "click" function is working perfectly.  The "touch" version doesn't show or hide my html.  I can alert() the ID in the touch event so I know im capturing the "touch" but the hiding/showing of content simply does not work. Any thoughts as they are the same function in all essence? Its got me stumped.         // click the link     $('body').on('mouseenter', '[id^="showmenu_"]',
  • sending form content in the form of xml to a php...

    Hi I have a form <form name="myForm" action="login.php"  method="post" > <label for="login"><font size="2"><b>Login Id :</b></font></label>   <input type="text" name="login" id="myText" class="input" placeholder="Enter the User name here"> <label for="login"><font size="2"><b>Password :</b></font></label> <input type="password" name="password" id="myText" class="input" placeholder="Enter the Password here">  <input type="submit" id="login" class="btn" value="Login"/> </form> Now if I want to  send
  • "best practice" for js namespaces?

    Hello, is there a general "best practice" for creating namespaces for objects in js? Ideally, I'm looking for an approach that will work for all scenarios, including all browsers, using the least amount of code, written in the most elegant and maintainable way. Ideally, I'm looking for the most universally acceptable approach that will be least likely to break.
  • capturing an anchor tag inside div tags

    how do i do that with this code  $(document).ready(function()   {   $('a').click(function(){     alert($(this).text());     alert($(this).attr('href'));     return false; });   }); which work if the anchors are just like <a href="/test1">---1---</a>  <a href="/test2">---2---</a>  <a href="/test3">---3---</a>  if they are embedded in div they do not work  <div style=display:table; class="clsMenu" id="divMenuSystem">   <div style=margin:0,0,0,0;>    <a href="/Eureka/Home.aspx" target="_parent" onClick="closeAllSubMenus();"">Home</a> 
  • How to set the return color value (Getter .css) on a different map than rgb space????

    Hello, I am trying to get the value .css("background-color") in this example: http://jsfiddle.net/ybLGX/ but it seems that the only colorspace retrieved is rgb, is there a way of getting such a value in hsl??? Thanks in advance for any help.
  • Selecting specified div when clicking it

    Hi, I am trying to make a functional dynamic jquery selection but it seems impossible for me. Here is the code: $('.schools').eq(0).toggle(function(){ $('.big_schools').eq(0).fadeIn('slow'); $('.big_schools').eq(1).fadeOut('slow'); $('.big_schools').eq(2).fadeOut('slow'); }, function(){ $('.big_schools').eq(0).fadeOut('slow'); }); $('.schools').eq(1).toggle(function(){ $('.big_schools').eq(1).fadeIn('slow'); $('.big_schools').eq(0).fadeOut('slow'); $('.big_schools').eq(2).fadeOut('slow'); }, function(){
  • image zoomable on jquery mobile but header and footer stay at top and bottom of device

    hi all, Is it possible to make an image zoomable but header and footer to stay at top and bottom of device respectively? Thanks
  • toggling existing html markup, how can i do a function?

    Hello, i use this piece of code to show/hide actual markup in a web page, but i want to do some function so when i call and pass a parameter it automatically sets the resulting behaviour. the thing is that i am new at jquery jQuery(document).ready(function($) {     $('.intertop ul.ultop .loginform a.login').click(function() {         if ($(this).hasClass('activo')) {             $(this).removeClass('activo').addClass('inactive');             $("#login-form").fadeOut().removeClass('activo');        
  • Getting inner HTML using "this"

    Hey Guys. I'm a little  new to jQuery. I'm currently trying to retrieve the contents of an inner html by using the "this" function. I have tried using it with the code below, but it doesn't seem to be working.. Do you guys have any suggestions? Thanks!                   $("#change_order_time").click(function(){                    console.log($("#order_time").this.html()); // Looking to get the inner contents of "#order_time"                  });                
  • Populate hidden list into html elements

    have few hidden fields which should become visible on click of a link. Below is the html code <table> <thead> <tr><th></th></tr> </thead> <tbody> <tr> <td align="center"> <span id="hoverspan"> <a href="#" onclick="DisplaySelectedPart('1')"><label id="internalNumber">121334</label></a></span> <input type="hidden" name="shipmentDetails.lineItems.part.mfgNumber" value="345245" id="part.mfgNumber1"/> <input type="hidden" name="shipmentDetails.lineItems.part.description" value="red and blue chicken sweaters
  • jquery and regex

    Can any one point me a good tutorial on regex expressions in jquery.
  • With version 1.4 can no long collapse a list from code

    I was using an earlier version of jq moble and was able to collapse a list with the following code: $('#myList').delegate('li', 'click', function () { $('#myList').trigger('collapse'); }); Anyone know why this code no longer works in 1.4.1    
  • Swiping doesn't work when video is on page

    Hallo, I used JQM to enable my pages for swiping from one page to another. Works fine so far but there is an exception: When a video is on the page swiping and sliding doesn't work. Example page: http://ulrichbangert.de/orchid/pleione/2013-03-25_Pleione_Ueli_Wackernagel_Pearl.php Example for a page without video: http://ulrichbangert.de/orchid/2011-02_pleione_barcena.php I'm using the video player video.js Why doesn't it work and how can I solve this problem? Best regards - Ulrich
  • Textarea with numbered lines

    I'm looking to add the line number for each line to the left of the textarea box. I would have thought that finding a solution to this would have been easy but it seems that all of the examples I've found on the internet are outdated and not working properly. Can anyone help me out with this by providing me with a current, working example? Thanks!!
  • jQuery-1.7.2.min.js Question

    Hello I am working with JQuery-1.7.2.min.js -- it is embedded in an application I inherited from someone else. I finally got the Eclipse IDE stabilized this morning, however, I have three errors coming from the JQuery as follows:  On this, I have three errors: as follows:  1. Syntax error on token "Invalid Regular Expression Options", no accurate correction available -- on this: contents:{xml:/xml/,html:/html/,json:/json/}  2. Syntax error, insert ")" to complete Arguments -- on this: :b,j.notifyWith(k,e)}} 
  • Any event to trigger once delay completed in jquery ui.sortable

    Hi All, In Jquery UI.Sortable, We can give delay to start the sort. I want to know , is there any event that to identify once the delay(i.e.,ms)  completed. I tried all events in the API list, start, activate,... all the events triggered when i start to move the item. I want to know when i hold(click & hold) the item for some nth-millisecond - trigger an event. Kindly provide any idea to proceed ASAP. Any clue or hack fix welcome ASAP. Thanks, Hari
  • How to set correct context of $(this) within anonymous function called by event

    I would like to access the ID attribute of an element selected within the click event of another object.  The code below shows the ID for the #button but i want the ID for the .a class element.  I think I need to use proxy but I could use some guidance.  Thanks in advance. $(document).ready( $(function () {     $('#button').on('click', function () {         $(".a").append("<p>ID:" + $(this).attr("id") + "</p>");     }); })); Example: http://jsfiddle.net/9937c/6/
  • Want to work with jQuery UI on website, using at this time old jquery tools

    Hi, iam using jquery tools on and old website of an customer. I want to use jquery ui, cause its better. Iam using the old jquery tools for the menu effects and the hover effects and for the audio/video player. Is there an tutorial how to upgrade or take the replacement? Thanks
  • Show Hide Text

    Hey Guys. I am trying to hide text when a with a click event. For some reason it hides the text and within a fraction of a second the text re-appears. I am not sure why this is happening.... Can anyone please help? Below is my code. Thanks you jquery code $("#change_order_time").click(function(){               $("#order_time").hide(); HTML code   Delivery Time - <span id="order_time">TODAY, ASAP</span>  <a href id='change_order_time'> Change order time </a> <br>
  • having problems doing my first example on jQuery

    Hi i am kash I have started learning how to use jQuery. i have been using the book jQuery for dummies. But i have encounted my first problem doing the first exercise. This is the code i used: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"            "http://www.w3.org/TR/xhtm11/DTD/xhtm11-strict.dtd"> <html> <head> <title>My Test Page</title> <script type="text/javascript" src="js/jquery-1.11.0.js"></script> <script type="text/javascript"> $(document).ready(function(){     alert(jQuery('img').attr('alt'));
  • How can I use the Fancybox hidden attribute?

    Hi, I'm attempting to make the two lower images hidden and only the top 'yellow' image visible so that when it is clicked on it opens up the fancybox where the other images can be scrolled through. Where am I going wrong? Thanks in advance! site http://13thunion.org/phototest.html
  • Map Disappear when forum has posted

    Hello All, I use both jquery mobile and google maps api in my web page. But I have a problem. When I post the form map disappears? My web page is http://tweethali.com/sample.php Do you have any İdea?
  • How do I stop the datepicker from displaying by default if no date is entered

      I am using jquery-ui-1.10.4.js and ASP MVC. In my View I am accepting a nullable date as input; @Html.EditorFor(model => model.Assessment.SsipAccreditationDate)   I have an Editor Template which injects the datepicker class;   @model DateTime? @Html.TextBox("", (Model.HasValue ? Model.Value.ToLongDateString() : string.Empty), new { @class = "datePicker", @style = "width:200px;" })   I have jquery code to hook up the datepicker with the date field;   if ($(".datePicker").length) {           $(".datePicker").datepicker({
  • Preload in the background of 2mb

    How to load the page only when such image is loaded? I tried:   $ ('# IDdaImagem'). On ('load', function () {       / / 'Code paragraph load a page / content' }) and the image still does not work after being charged ... is a background image, and use a jQuery plugin to open in other resolutions, the backstretch, it uses a div with class backstretch, as I carry this Background with 2mb before the site content? i test this and work, but not the item that I give show, appearing at the time, it works
  • refreshing a div on button click...

    Hi, How to refresh a div on button click example, <div id="refresh "> <button onclick="refresh() ">click</button> </div> <script> refresh() { //code to refresh the div } </div>
  • dynamic Cascding select2 dropdown using $.ajax...

    How to create a dynamic Cascding select2 dropdown using $.ajax...
  • .load Function ... within .load function

    My page utilises an AJAX .load function to load divs from a separate .html file into a target div on my page. Here is my AJAX code: $(document).ready(function(){ $("#about2").click(function() { $("#content").load("content.html #about", function() { $.getScript("slides.js", function() { $(window).scrollTop(0); }); }); }); $("#process2").click(function(){      $("#content").load("content.html #process", function() {     $(window).scrollTop(0);     }); }); $("#materials2").click(function(){      $("#content").load("content.html
  • How to get string value php ??

    i'm have a code jquery <script> $(document).ready(function(){      $('.div1').slick({ slidesToShow: 5,   }); }); </script> and i'm get value php :  <input style="text-align: center;" id="<?php echo $this->get_field_id("num"); ?>" name="<?php echo $this->get_field_name("num"); ?>" type="text" value="<?php echo absint($instance["num"]); ?>" size='3' /> How to get string slidesToShow = $instance["num"] Thanks
  • color animation in the navigation menu

    Hi I am trying to add color animation to an existing navigation and I have tried the various suggestions and tutorials and have failed! I would like the color to slowly move across the nav menu bar when mouse over rather than an abrupt color popping up. I tried first doing this in a new document so as not to screw up what I have and is working. I think I found some references to it under jquesry ui the site is calisway.com any help would be greatly appreciated. thanks so much marcella
  • JSON Array Loading

    I have a very simple module where I want to load my preferences from a database into the input boxes of a form. The $.getJSON seems to work fine in that it returns the following... [{"pref_ID":1,"pref_CoName":"WK Design Group","pref_CoAddress":"351 California Street, Suite 3","pref_CoCity":"San Francisco","pref_CoState":"CA","pref_ZipCode":"94104","pref_Phone":"415-537-9400","pref_Fax":"415-863-4209","pref_FormNum":"WKdg Form 1-1","pref_FormDate":"2000-03-20","pref_FormComment":"A 1.5% per month
  • jquery $(document).ready() - proper shortcut description?

    Hello, the following jQuery function will get called as soon as the DOM becomes available: $(document).ready(//myfunction) The following syntax is a shortcut: $(//myfunction) However, (//myfunction) is just a standard javascript anonymous function aka IIFE (Immediately Invoked Function Expression). So is it technically correct to simply say that "$" is a shortcut for $(document).ready()?  If so, then what is the proper technical term for "$" in this scenario? Would this be described as a jQuery scoping
  • Ajax, popstate

    Hello, I know this not exacly strick forum for this type of problem but maybe some1 will help me. I was looking around for some time into example made by Sebastian Sulinki  here' demo - http://html5-history-pushstate.ssdtutorials.com/ It is perfect, but it seems that `window.onpopstate = function(){` does not work on document ready or window load in firefox and interner explorer 11 and 10  It does trigger on other browsers. I can't demonstrate in on my server because it wont work(demo) on not domain
  • SVG animation and firefox

    I'm struggle with SVG animation drawing, which is work perfectly on all browsers (even IE has no problems with that), only firefox not drawing correctly Script it self work on all modern browsers Script took from -http://tympanus.net/Development/SVGDrawingAnimation/ But when I generate SVG code from vector image it does not work on firefox Example http://codepen.io/SzymonDziewonski/pen/agcxs/ It is 100% svg path issue, something with code. But what?
  • 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