• if condition not working properly

    Hi, I am using below code the data form other page coming properly but while i am showing this in html page, the if condition is not working properly, whatever the result it going only with the if condition not in the else condition. both the time code of if part is working $(document).ready(function() { $.post("check_user.php",{uname:uname}, function(data) { alert(data); if(data=uname) { alert("Already exit pls change!"); $("#user_name").val(''); $("#user_name").focus(); } else { alert(data); }
  • Jquery accordion

    The code below creates and deletes the content of the accordion <div id="accordion">.  With the initial accordion population everything works properly ie the proper content is generated and the "accordion action" works. But once the the <div id="accordion"> is emptied and re populated all the content is correct, but the "accordion action" does not work ie everything is expanded.. Please comment Kinetic.Layer.prototype.omniLoadPropertiesPallet = function(node){ attrs= node.getAttrs(); for (key in
  • How to expand html select menu(dropdownlist) on focus event.

    Hello All, I am facing problem to open select menu options on focus event. There is no solution I found for this problem. I have done lots of research on this. one solution is to do by setting size of dropdoen but it is not feasible solution for me. Can anyone tell me how can I achieve this functionality using jquery or by using any plugins ? Any help is really appreciated. thank you in advance. Regards, Pankaj Kolhe 
  • How to deal with the conflict between Jquery Mobile and Jquery UI?

    I want to use the image resize and drag function of Jquery UI in a Jquery Mobile-based page, but after adding Jquery UI lib in the page, all Jquery Mobile CSS lost effect. Anyone got any hints? Thanks in advance. Code like this <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" />  <link rel="stylesheet" href="./jquery.mobile-1.4.2.min.css" />  <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script type="text/javascript"
  • Validate plugin - Handling of error messages

    Hi ! Can I have some help for my form please I use the validate plugin. http://jsfiddle.net/Xroad/2pLS2/23/ I would like to show a general error message only for all empty fields on the top of my form (that it's ok) and custom error message under each field (like "Please enter at least 2 characters"). How can I do that please ?
  • Hiding an iput field on an option select drop down

    Hey Guys. I have wrote a small piece of code that should hide the credit card text field if a user selects cash. I am not sure if my selector statement is incorrect or my .click() function is incorrect since its not an actual click. It a selected option. By the way my jquery code is all the way at the bottom of the after the HTML gets loaded. Below is my code. Any help would be really appreciated!          $("option>select(eq(1))").click(function(){                 $("#credit_card_number").hide();
  • Navigation Does Not Display on Mobile Devices

    A jQuery navigation I'm using works properly on desktops and laptop devices, but for mobile devices (iPhones, iPads, and Androids) it does not display.  Need help identifying a solution.  The URL: Foremost Family Health Centers.  Thanks in advance for your assistance.
  • Warning/ Error: being assigned a //# sourceMappingURL but already have one

    Hi, When looking at the website I'm working on here I always get a Warning in FireFox on the upper right side of the browser from using Cycle2 plugin. Like this: JavaScript Warning: Error: http://flyingfood.com/wp-content/themes/customizr-chld/js/jquery.cycle2.min.js?ver=20140128 is being assigned a //# sourceMappingURL, but already has one Any idea on how to fix this? Much obliged! C76
  • My buttons don't get enhanced when having JQuery UI script

    Hi, I hope someone can  help me. I am moving an application to the JQuery Mobile framework and I am having a problem with the buttons, they don't get enhanced by JQuery Mobile, I discovered that having the JQuery UI script file referenced in my program interferes with JQuery mobile enhancement, it seems like JQuery UI takes precedence. I use UI for dialog boxes and I would like to keep it that way, I moved the UI script before the JQuery Mobile script and the buttons now look but the dialog boxes
  • Where are the i18n files on code.jquery.com

    I have revised my code to use code.jquery.com for jQuery, jQuery-ui, and jQuery-mobile files. A particular set of pages require i18n files but I cannot locate them on code.jquery.com. Where are those files? <link href="//code.jquery.com/ui/1.10.4/themes/ui-darkness/jquery-ui.min.css" rel="stylesheet"> <script src="//code.jquery.com/jquery-1.10.2.min.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/i18n/jquery-ui-i18n.min.js"></script>
  • Navigation Will Not Display on Mobile Devices

    The jquery navigation I'm using works properly on desktops and laptop devices, but for mobile devices (iPhones, iPads, and Androids) it does not display.  Need help identifying a solution.  The URL: Foremost Family Health Centers.  Thanks in advance for your assistance. TC
  • When I fill my page with a div, I can't get the height of the body of the page any more

    I have a page which has a button.  If the user clicks it, the button fires javascript to expand a DIV to cover the page.  This works.  However, it gets complicated because the DIV has some contents within it.  It has some text.  It also has a footer that stays in the same place no matter how much the user scrolls down the text, and that footer is needed because it has a MIMIMIZE button to get rid of the DIV, when the user decides he has read enough. I've made a much simplified page at: https://rateforsuccess.com/showcss.htm
  • jQuery Problem with Superfish AND jquery.validate

    Hi , i must use the both javascript but i isnt work together if i put the <script src="./js/jquery.validate.pack.js"  > superfish work not but my validation form work if i put   <script src="js/jquery-1.7.1.min.js"></script>     <script src="js/superfish.js"></script> and remove <script src="./js/jquery.validate.pack.js"  >  superfish work  but my validation form doesnt work have you good a solution ,?  help me please
  • jquery validation plugin, IE7: settings is null or not an object

    Dear all, I have a problem that I can't seem to find a solution for.  I have a set of radio buttons that I validate with the jquery validation plugin to make sure that they are selected.I want the user to choose Resit (Yes/No), Standard glh (Yes/No) and then pressing "Finish". An error should be reported if any of them are empty. I dynamically wrap a form tag around the table where the radio buttons are located and then validate that form. This works fine in Firefox and Chrome but not in IE7. I debug
  • Listview in jquery mobile is appearing as bullets

    <ul data-role="listview" data-inset="true"  >             <li data-role="list-divider" >Highlights</li>       <li>Guaranteed Placements </li>                <li>Confirmed Companies for Internship</li>       <li>AICTE / UGC Approved</li>                <li>International Faculty </li>                 </ul> What to do? Please help!
  • Display trailing zero for price in jquery

    Hey all, Hopefully someone can help with this.  I am simply looking to add the final zero to the decimal part of a price in a price calculator I am written.   The calculator starts with a user selecting a standard "Sign Up" fee of €25.50 and then selecting other packages to increase the price. At the moment, the standard price displays as €25.5.      costs = jQuery('.cost-container').text();     total = Number(costs) + (25.50).toFixed(2); I got this code by looking at the following similar query:
  • how to change jquery mobile panel width?

    i try to change panel width using  .ui-panel          {             width: 50px;         }          it work... but panel background layer width didn't change.... plz help.....
  • How can I fix this? Size of the page? or size of the content?

    As I can make darkblue line fits all size of my screen and not the size of the contents, please help, not sure if the size of the container or product. excuse me for my pour english.  
  • Cannot change background color of select box

    I am using jquery.mobile-1.3.0 and jquery-1.10.2 with jquery.mobile-1.3.0.min.css and  jquery.mobile.structure-1.3.0.min.css I would like to change the background color of a <select> box but I cannot get it to work. I can change the background color of a <div> with: <div style="background:red"id="test1" data-role="button">Test-1</div>But if I try and do something similar with a select box nothing happens. Here is an example of what I have tried: <select style="background: red" id="feed" class="news"
  • how to navigate fancybox to next picture and back to previous ?

    I have a non-typical question about jquery fancybox. I've got the following html: <a class="fancybox" rel="gallery1" href="content/img/img1.jpg" title=""> <img src="content/img/img1.jpg" alt="" /> </a> <a class="fancybox" rel="gallery1" href="content/img/img2.jpg" title=""> <img src="content/img/img2.jpg" alt="" /> </a> <a class="fancybox" rel="gallery1" href="content/img/img3.jpg" title=""> <img src="content/img/img3.jpg" alt="" /> </a> That simple markup gets us some work done. after clicking the
  • about jquery mobile,when checkbox item contains textbox,textbox will displays irregularly

    Code are here,I don't why,can some one tell me,how a textbox can be included in a checkbox item? thanks a lot!  <fieldset data-role="controlgroup">         <legend>Vertical:</legend>         <input type="checkbox" name="checkbox-v-2a" id="checkbox-v-2a">         <label for="checkbox-v-2a">One</label>         <input type="checkbox" name="checkbox-v-2b" id="checkbox-v-2b">         <label for="checkbox-v-2b">Two</label>         <input type="checkbox" name="checkbox-v-2c" id="checkbox-v-2c">        
  • HELP ME JSON

    Buongiorno sto provando un rializzare Una Pagina Che al Momento del login svi apparire all'utente collegato, DOPO Aver Inserito username e password, svi aprirsi Una page con il riepilogo dei Dati Contenuti in un file JSON Nazioni Unite. non così passeranno la Chiamata al JSON per recuperarne i Dati contenuti. di Seguito scrivo il file di JSON e la page html: UTENTE.JSON: { "Nome": "Pippo", "Nationality": "Baudo", "Dati di Nascita": "1936/07/06", "Provincia di Nascita": "Catania", "Comune di Nascita":
  • Scaling images in popups

    On this page http://demos.jquerymobile.com/1.4.2/popup/ it has a link for "scaling images in popups", which i am interested in, but the link leads to a 404 error (http://demos.jquerymobile.com/1.4.2/popup/popup-images.html) anyone know where this information exists ?     I'm trying to get a reliable way to view item images in the app I am working on
  • Problem load page. Need refresh

    Hi.. I just try this great jqm. Try my page to find my problem http://www.svariogroup.it/markethink/svariomanager/marconibeach/stats.php Click on one of the voice The hyperlink doesen't work... but if you refresh page... it works!!! It happen not only in this case! Could you help me? thank you very much!
  • What does this code mean? Why including JS like this??!!!

    <script type="text/javascript">         window.jQuery || document.write("<script src='js/jquery-2.0.3.min.js'>"+"<"+"/script>");         </script>Why not just <script src='js/jquery-2.0.3.min.js'></script> Thanks
  • $ is not defined

    Hi; How can I deal with this?
  • PrettyPhoto

      Greetings,   I have an issue with the pretty photo, I can't fix the width and height + I want to remove the twitter and like buttons + I need an auto resize or fix the width and heigh.   Couolld you please assist   below is the code     <link title="prettyPhoto main stylesheet" href="/departments/IT/Pages/iframe/css/prettyPhoto.css" rel="stylesheet" type="text/css" media="screen" charset="utf-8"/> <script src="/departments/IT/Pages/iframe/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
  • I need help with product page

    Hello you all! I'm a new member I need a jQuery script for product pages, with a big photo that change when you click on one of the thumbnails. Something like you cann see in [b][URL="http://www.bally.com/item/store/BALLY/tskay/1FACB8A1/rr/1/cod10/44628763HJ/areaid//sts/"]this product page[/URL][/b], for example. Currently I'm using a simple code for pages with 2-3 pics, but I'm afraid it won't be useful for 20 pictures. Thanks in advance!
  • how to return values from function.

    the code below checks an array of objects for a name in one of the objects and if found it returns the index number if not returns false, but im having troubles.  1. what is the correct way to skip to the next iteration of the .each loop 2 what is the correct way  exit the function  this.nameExists =function(attributeNodeClass){ $.each(list, function(i,anc){ if(attributeNodeClass.name==anc.name){ return i; }else{ } }); return false; }//END this.exists =function()
  • Button Set Connection

    Hi All, I am creating a list that contains several items with check boxes linked to each item in the list. If the item is in the list more than once then the check boxes are linked and when changing the check boxes, it changes on both items. So far I have got it to do exactly what I want - Here As you can see, the check boxes associated with 'Item A' are a lot larger than the others. I have found this occurs when the check boxes are being linked together as a button set, they expand and the graphics
  • .Toggle function with php on mobile

    I've made notes in the code below, on my mobile site I would like to hide information unless a user taps on the name.  There will be anywhere from 3 to 100 "Names" on the screen at a time depending on what the user is searching for, and each one will need to have information hidden until the name is tapped.  This should be a simple toggle, however, each line item is being dynamically pulled from a database so I can't hard code the toggle function.  Any thoughts on how I could fix this? //I've cut
  • problem on slide effect on div with scroll

    Hi all Im in trouble to work around with slide effect from right to left on a div and thats fine but when i toggle to hide the div with effect slide and work, but show the top of the div and dont slide out in scroll div position... anyone can help ? exemple if i use bounce work fine in any position of div scroll if i use toggle or hide jump to top of the div then slide... what i want was slide out show div in scroll actual position. ... i use $ css( left  to do it de slide
  • looper.js plugin - images invisible in between crossfade animations

    I've been trying to use looper.js to loop through various words or images inside a div (examples) Everything seems to work OK except when I use the crossfade animation option  class="xfade". The content appears only during animations, and is otherwise invisible. NOTE: This is partially fixed by commenting out "position: relative" in ".looper .looper-inner":     .looper .looper-inner {       overflow: hidden;       width: 100%;       height: auto;       /*position: relative;*/       z-index: 2;  
  • change href

    i have some links on my page  like http://domain/uploads/docs/1.pdf and i need it to change the links while page is loading to http://domain/DownloadHandler.ashx?path=../uploads/docs/1.pdf look that path could not always be /uploads/docs it may read the "original path " and just add the DownlaodHandler.ashx? etc also i see that my page takes some 2 or 3 seconds to load all scripts or jquery and javascript and it make some contente to move on that 3 second window time so in that time i saw content
  • how to search an array of objects

    with an array of objects how would you check a string within the array function AttributeNodeClass(name, type, klass, description, controls) {     this.name = name     this.type = type     this.class = klass     this.description = description     this.controls = controls     this.dump = function(){         console.log(this)     } } function ANCList() {     var list = []     this.add = function (attributeNodeClass) {         list.push(attributeNodeClass)         return this     }     this.dump = function
  • Can someone help me with this question?

    You are developing a form that captures a user's email address by using HTML5 and jQuery. The form must capture the email address and return it as a query string parameter. The query string parameter must display the @ symbol that is used in the email address. You need to implement this functionality. How should you develop the form? <!DOCTYPE html > <html> <head> <script src=http://code.jquery.com/jquery-latest.js></script> </head> <body> <form> <input type=”text” name=”email” /> <input type=”submit”
  • Can select an element, please help.

    Hi Guys, First of all, I'm sorry, I'm not very familiar with jQuery (only Basics). I'm doing a Price Count for my website and I'm stuck, because I can't select the element I need. Here is JSFiddle The problem is no matter what I'm trying but I can't get the title (or HTML inside the div) to display it in the textarea. I would like to retrieve the text inside the element, so to avoid adding extra tags to html. <div class="medium-6 columns title" title="titulo">Titulo</div> When I create this var product
  • Append to selector in textarea

    Hi, I have a textarea (or div) and I wanna append a text in it which my mouse selector is somewhere. let me clarify it : For example you click in text area to write some thing and when you wanna insert some thing it will insert to near your selector not end of sentence... thank you
  • Autocomplete select:

    Hi all, Im using Autocomplete in my .js i've added some properties to the source (like p which is a Class array - myClass[]) i want to be able to return this class as well as the realValue to the modelAction (using MVC) but the class comes empty. please help :) Class example  public class Service      {         public string name { get; set; }            public ServiceProblem[] problems { get; set; }     }my .cshtml:  @Html.AutocompleteFor(Url.Action("AutoCompleteServiceProviders", "Create"), true,
  • Uncaught TypeError: Cannot call method 'createDocumentFragment' of undefined in Chrome

    Everything in IE/FireFox is fine but in Chrome appear this.. i don't know what is the real problem.. anyone can help? i am using jQuery JavaScript Library v1.10.1 this problem appear after i execute $('.title_headers').slideDown('fast', function () {                          $('.toogleHeader').find('a:first').removeClass().addClass('tdown');                     }); this simple code..
  • 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