• Change the dropdown list form arrow by an image

    Hello, On a mobile site i would like to use a 13x16px image instead of the default dropdown list form arrow. Here is the form code. <div class="select">     <label>Sort By     <select id="dropDown1">                         <option value="latest">New videos</option>                         <option value="top-rated">Top Rated</option>                         <option value="most-viewed">Most Viewed</option>             </select></label>             </div> What would be the jquery code to do this? Thanks
  • Checking if selected value disabled

    I am trying to check if the selected value is disabled in a select field.  Here is my code: if($(this).attr('disabled')){         alert('Disabled');     }
  • Problem with encodeURIcomponent after android/gmail update

    Hello: I have a small web app that collects info and then fires my android phones mail client. It fills in the subject and until recently fills in the body of an email. I then manually send the email. This app has been working up until I updated my phone from kitkat (os) to lollipop. At the same time I think I updated gmail. The subject still comes through but the body of the email does not get filled in. Here is the relevant jquery: $(document).on("click", "#sendEmail",function(){     $(location).attr('href',
  • .finish() on effect won't restore effect (Bug?)

    Consider this: $(element).finish().effect("highlight", {}, 4000); When called multiple time, the background color locks onto the state it had when last called, so a double click on the trigger for this will make the element permanently highlighted. Feels like a bug, but is it? When .finish() is called on an element, the currently-running animation and all queued animations (if any) immediately stop and their CSS properties set to their target values. All queued animations are removed.
  • Variable setting

    I am using .ajax to get the price of a product.  It returns fine.  Outside of the .ajax function, when I go to alert it, it produces an undefined.  Before the .ajax, I do a "var price;".  var price; $.ajax({ url: 'process.php',                             data: { productID2 : product},                             type: 'post',                             success: function(output) {                                 if(output){                                     price=output;                        
  • jQuery Form Validator - HowTo

    I am exploring jQuery Form Validaor (By Victor Jonsson) and already liking it so much. There is something I am trying to do with it, but couldn't figure out how to do it yet. Once user accesses given URL, the php page will be displayed. There should be a button clicking on which will display error message for a particular input field. I do not actually want to validate the input value that has been provided in this field when I click this button.  Just want to display the error/validation message
  • Listview - how to pass and read parameter ?

    Hello I'm new to jquery mobile. I have the following construct: <!-- Block 1--> <div data-role="page" id="bedarf">             <div data-theme="b" data-role="header" data-position="fixed">                 <a data-role="button" data-inline="true" data-rel="back" href="#" data-icon="arrow-l" data-iconpos="left" class="ui-btn-left">Zurück</a>                 <h3>Bedarfsanfragen</h3>             </div>                         <div data-role="content">                 <ul id="listbedarf" data-role="listview"
  • Change div text on click

    I have been trying to work out how to change the text inside the div when the button is clicked in the same fashion as the button text is responding. jsfiddle I tried changing the if / else to act on the div rather than the button like so - if ($(".stileone").text() === 'Yellow Box') {          $(this).text('Red Box');     }     else {         $(this).text('Yellow Box');     }    but it did not work. How might I change the text in both the button and the div on click please. Any clues would be appreciated
  • Form select chain event

    Hi, i have 3 select boxes which contain categories, sub categories and a further sub category. Is there anyway i can do a chain event so the last 2 are disabled but the first one is enabled. Upon selecting a category in the first form select the second form select becomes available. Then once the 2nd form select has been selected this makes the last one become available. I have created a fiddle of my select boxes - http://jsfiddle.net/L4t83nvz/ Any help with this matter would be greatly appreciated.
  • jQuery UI Select and first selected option not appearing

    Hello, long time reader, first time poster. Trying to get a jQuery select to display the selected="selected" option's value as its initial "placeholder" text. Like "Choose Category" as an example. I have another jQuery select on the same page working just fine in the exact same setup like this:     $("#mainlanguage").selectmenu({ width: '100%' });     $('#ddCategoryFilter').selectmenu(); The second select menu works but does not show any "placeholder" text even though the first <option> does in fact
  • Required CSS and Jquery for a design

    Hello   I need to build a image slider as shown in following image .Everything should be like that  .Eg there is some description( Title,Photographer,Location) of the current selected image.On the page load there is static image  which is bigger one but it should be changed when user clicks the image and description  should also get changed.It would be highly appreciated if you send CSS and required jquery for this design . Thanks and Regards.
  • Draggable control not working in IE 9 & IE 10

    Hello, We have a project where draggable control is used. The following jqueries are used  1. jquery-ui-1.7.2.custom.min.js 2. jquery-ui-personalized-1.5.3.js But on IE 9 & 10 the control does not work. Can you pls help us to get this issue resolved? We have tried to apply the hotfix provided at "https://forum.jquery.com/topic/jquery-ui-does-not-work-on-ie9", but could not get this fixed. Regards, Anand
  • Jquery mobile page disappear after image displayed with css

    Hi, i'm new in jquery mobile, but i allready like it ! I'm trying to use the file transfer with Jquery mobile and cordova on android, i use this tutorial to practice: http://blog.revivalx.com/2014/05/03/tutorial-camera-cordova-plugin-for-ios-and-android/ After selecting the picture, this function is call on success: function onPhotoDataSuccess(imageURI) { navigator.notification.alert("onPhotoDataSuccess Image URI: "+imageURI, function() {}); var cameraImage = document.getElementById('image'); cameraImage.style.display
  • SuperFish Menu sub-menu arrow styles

    How do I change the style of the arrows on the Superfish menu? I can't find any styles anywhere but my layout stylesheet and it has nothing defining the arrows. The second level menu has the sf-arrows class and it shows a down arrow vs. a right arrow like the third level.  How can I change the arrow style for the second level to a right arrow? HTML <ul class="sf-menu fixed" id="menu">     <li class="current">         <a href="index.html">Home</a>     </li>     <li>         <a href="#">About us</a>
  • Set height of each tables = Tallest table in class

    Dear All Objective Set  height of each tables  = Tallest table in class JQUERY used is listed below ... it is not working <script type="text/javascript"> $(document).ready(function() { $.fn.delay = function(time, callback){     // Empty function:     jQuery.fx.step.delay = function(){};     // Return meaningless animation, (will be added to queue)     return this.animate({delay:1}, time, callback); } var maxHeight; //<<<------------------------------------------------------code start from here $('.testimonials').each(function()
  • Mostrar popups con las funcionalidades nuevas de una pagina

    Hola! Tengo la siguiente duda y no se ni como empezar, Vieron las paginas webs donde cada vez que agregan algo nuevo a la pagina, cuando ingresas por primera vez a la pagina te muestra un popups sobre la funcionalidad nueva y así irte mostrando lo nuevo.  Esto con jquery como lo puedo hacer? hay algún plugin? Gracias,
  • How to display a message when a droppable widget option accept returns false

    Hi, I use  Jquery UI v1.10.3. I have droppable widget in a tree with a accept property. When the accept option returns false, it is not possible to drop any element in the tree. I need to display a message to the user when it is denied to drop. The message have to be displayed in the dragging element frame. - I do not find in the droppable widget any event which enables to modify the dragging element. - How to get the dragging element frame when the accept option is set to false ? I would really
  • Divide a long html page into smaller pages

    Hi all, I'm very new to jquery, and I want to know if I can use it to turn a long html text into shorter 'chunks', like pages of an ebook. Every time the user press a 'next' button, the next 'chunk' of text is load out on the screen. If such thing is possible with jquery, what should I read up to code it? Here is an illustration, hope it will make things easier to understand.
  • Why dynamically created div element is throwing error when I'm adding id to it?

    In below example, I've highlighted two of the lines, Ist one is working but another one is not working unless I would add $() around it.             var $tableParent = $myTable.parent();             <!-- Following would work -->             $divParent.attr('id','parentDiv');             <!-- create a new element -->             var $newDivElement = document.createElement('div');             <!-- $newDivElement.attr('id','dynamicdiv'); --> <!-- why this is not working ??? -->             $($newDivElement).attr('id','dynamicdiv');
  • want to change calendar in dateinput jquery based on selected days from another textbox

    i am using two textbox one for number of days and second for date input. which are working together if i enter number of days in one textbox then the dateinput show the next date by adding days in current date but in calendar date does not change you all can see in the attached image. i want to change the date in calendar as well. kindly help to solve this issue thanks.
  • jQuery Script for mobile devices to drag drop and create/clone object which can resize and rotate.

    I need an example to create clone object in mobile device using drag and drop. later user can resize that object or can rotate it. Is there any example which works on mobile devices?  I specially need for object cloning, because I have some example for drag , drop and resize the object or image. Please provide the solution or any hint which will help me. I need the help asap.
  • Help with Date Picker Return Date Format

    Hello, I am using the date picker and it works great.  Implemented, fine.   However, once it was implemented, my sites in Australia and UK have an issue. My user logs in, and their configuration has a global value which indicates how their dates are: MM/DD/YYYY  (1) or DD/MM/YYYY  (2) When my #2 users have the field, and the calendar comes up, they select it, and the information is placed in the input field as:  MM/DD/YYYY rather than DD/MM/YYYY Obviously this is an issue. I need to tell the date
  • How to set the Selected Value for the DateTimePicker after Blur event

    Hi  Team ,   As  I have two DateTimePickers , InDate and outDate .  My requirement was as i Choose the Selected InDate from the DateTimePicker then , thereafter I should Open the OuDate Calender  by using  $("#outDateID").datepicker("show"); But  When i fire Blur Event of InDate DateTimePicker the Blur Event Fires  , but the as i select Different dates its not getting Selected in INDate DatetimePicker.   My Question is now how to set the Selected Date for the INdate While Using Blur .  Please find
  • toggle one div at the time with masonry

    Hello all looked up google, this forum but could not find a solution. Hope i can get some advice. i have several divs.  i'd like to only open one at the time.this is my html and i have several, up to ten such sections on my page.  <div class="detailList"> <div class="detail intel"> <div class="item-content"><p>Procesador: Intel® Atom™</p></div> </div> <div class="detail monitor"> <div class="item-content"><p>Pantalla: 7"</p></div> </div> <div class="detail os"> <div class="item-content"><p>Sistema
  • Adding and Removing Attributes of Elements in Iframe

    I am trying to give elements on a page inside of an iframe a temporary ID if they don't already have one when they are clicked. I was able to add a temporary ID but I cannot remove it and give it to another element when it is clicked. The following are sample markup and the code I have used to give each element a temporary ID if it didn't already have one when clicked. <div>        <p> Sample1</p>        <div> Sample2 </div>        <span> Sample3 </span> </div> var myTarget ; var targetID ; var modifiedElement ;
  • Dropdown Menu compatible with mobiles

    Hello, I have this script which have two dropdown menus to go to a specific url. var getURL = function(){     var option1 = document.getElementById('dropDown1').value;     var option2 = document.getElementById('dropDown2').value;     var URL = 'http://www.domain.com/' + option1 + '/' + option2;     if ((option1==2) && (option2==2)) {     var URL = 'http://www.domain2.com/'; }     location.href=(URL); }     <select id="dropDown1">     <option value="1">1</option>     <option value="2">2</option>    
  • Smooth scrolling help :c

    Hi everyone! Im trying again to smooth scroll an anchor link in my page and i just got tired triyn', srry for being a noob, can anybody help me? here is my code: http://jsfiddle.net/carosolenoc/uf9j2vtp/ (Ignore the jquery file)
  • add active class to menu

    why can not add active class in a href for php Link
  • jquery core extension

    I was looking this page, under jquery documentation (because I would like to write a jquery plugin).  Now, I understand that 'greenify' will became a chainble plugin. But, 'ltrim' and 'rtrim' what are considered? Unchainable plugins? It is allowed ? In general, functions written in style $.XYZ (without 'fn'), what are useful for? Feel free to move this post on the appropiate forum, Thank you Claudio
  • Disabling and Enabling Field in Jquery

    Hi Team ,              I have a four textbox fields. Out of Which  First textbox is enabled and remaining  three i have Disabled on the  document.ready .   My requirement , After Filling the data in  one text box , the second textbox should get enabled. After Filling the data on the second textbox , the third textbox should be enabled.  But the the Previous Should Field Should have value  , then only next field should be enabled .  please let me know ASAP , how to meet this requirement ?
  • Disabling the DateTime Picker Textbox

    Hi Team , I just wanted to Disable and enable the Datetime picker TextBox  in Jquery? i have a  Simple TextBox  , and Another Textbox Which is a DateTime Picker. if i enter the Value in First TextBox , then only My Second Datetime Picker Textbox Should get Enabled.  i  have done , but facing the Issue of Image icon of DateTimePicker also , the Textbox gets disabled but Still on click of image icon , Calender Displays.  In the Disabled mode i dont want the image icon to display calender. Please find
  • [jQuery] window.onbeforeunload fires in IE when a JQuery UI Dialog is opened

    This is very frustrating. I have the following code $(window).bind("beforeunload", function()     {         // get's instances to all three editors         var edMainT = FCKeditorAPI.GetInstance('edMain');         var edSecondaryT = FCKeditorAPI.GetInstance('edSecondary');         var edAdditionalT = FCKeditorAPI.GetInstance('edAdditional');         // check to see if the editors are dirty (have there been any changes?)         if (edMainT.IsDirty() || edSecondaryT.IsDirty() || edAdditionalT.IsDirty())
  • IE 10 will not load jQuery from server.

    Hi,  I've got a nice asp.net intranet application that I am working with Works great in "http://localhost:4545/"  But.. not when running off my server from IE 10, IE 9, IE 11. it is acting like there was no jQuery or CSS. Everything runs fine off of the server inside (Chrome or FireFox). What is different about debugging in localhost than running it off of the server? Andy..
  • I Get a undefined OnSuccess

    Hello.  I'm getting a Undefined value OnSuccess response and never fire a WebMethod.... (asp.Net vs2013, Framework 4.5 jquery 2.1.1) This is MyCode: <script>         function fun() {             PageMethods.GetPageMethod(onSucceed, onError);             return false;         }         function onSucceed(result) {             alert(result);              // HERE I Get a long HTML as Server Response instead a "Welcome PageMethods" string         }                               // By the way, debugging
  • hasClass returning false despite selecting based on class

    So I'm selecting elements based on their class, for example: $.each($('#gender_chart .nv-slice'), function(i, value) { }); OR $('#gender_chart .nv-slice').each(function() { }); No matter which I use, if I then print out hasClass() for $(this/value), I get false. For example: console.log($(this).hasClass('nv-slice)) console.log($(value).hasClass('nv-slice)) As you can see, I'm looping through all elements with the class 'nv-slice', but then calling hasClass('nv-slice') on any of these elements returns
  • Using comma as decimal separator

    Hi, I have a multilingual tablet application using jqm 1.3.2 as UI framework. How can I use comma as decimal separator for <input type="number"/> Thank you Alex                      
  • Issue with window.document in IE 11

    HI Every one, I have strange issue on my JSP page like strings "Undefined" are displayed every where on page. I have given sample code snippet below and help me out to resolve the issue. gave source code as well for your reference. open_link4 will return the window object. Please provide me the resolution as as possible.  private void writeTopLinks(Claim claim, JspWriter writer,    IClaimVehicleFacade claimVehicleFacade,    RolloutDelegate icsRolloutDelegate) throws IOException {   if (SecurityThreadUtils.hasAccess(Function.CLAIM_NOTES_ADD))
  • Calculating Subtotals

    I've used jQuery on and off for a couple of years but never enough to fully understand all the features. In the past I've used it to (say) sum up a column of inputs (on blur) and put the sum into a span as a total at the bottom of the column. My challenge this time is that I've got to do subtotals. And I'm stuck. Hopefully the html below is self-explanatory. The html is dynamic but I have full control of it so I could add indexes or extra attributes etc. The number of inputs and subtotals is dynamic/variable.
  • Opening DateTime Picker

    Hi Team,  I have a Textbox , Where i  have made it Jquery DatetimePicker . I have Buttton Go .   Now Once i click the image icon Calender , the datetimePicker gets displayed.   Now if  Suppose the user does not select any point  date .  Then , When user clicks go the button , I will not fire the validation message but instead the image calender icon should get open. Please let me know how to do this ?    
  • Multiple validation Select Box

    The idea is to validate all the 3 select boxs and if the user dont chose any option in any box he display a label  below saying "that champ is need". I can do for one select but I dont know how to do for the 3 at the same time.  HTML                   <div class="all_3_boxes">                       <div class="dateNaissance">                           <div class="inner">                                                   <select id="selJour" name="subjectJour">                                    
  • 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