• How to calculate the tax

    Hello gus I am new in JQuery and I want to calculate the tax in JQuery but i dont know how to do that. It has also a select option too choose your tax (0%, 6% and 21%) can someone help me please?
  • three.js - conflict with particles

    Hi, I have a problem with three.js. i have two particle system set ups that seem to be conflicting with each other. The first scene loads up without problem, but when the second set loads the first set of particles vanish. This wouldn't be too confusing if it weren't for the the fact that the rest of the first scene is still appearing in the entire set up. Is there an easy way to rename or call in the two sets of particles? I've looked around but can't find a ref to this. the one thing that i think
  • Why I can't choose 2016

    Hi, I have  a datepicker like this: <input type="text" id="dateFrom" name="dateFrom" readonly required /> and: <input type="text" id="dateTo" name="dateTo" readonly disabled required /> and I have the below code for it but I don't know why I can't choose 2016? <script type='text/javascript'>//<![CDATA[  // $(window).load(function(){ $(function() {     var fromDate = $("#dateFrom").datepicker({         defaultDate: "+1w", dateFormat: 'dd-M-yy',         changeMonth: true,         numberOfMonths: 1,
  • How to make multiple ajax call in page load

    Hi, I have a page with several dropdown lists. I need to make around 7 ajax get calls to get the data and bind different dropdowns. Each dropdown is filled by getting data from Url. Is there any way to get the data in one Ajax call rather than multiple ajax calls. Could you provide me any examples, links
  • Setting Up Multiple Event Responses using named functions

    I am trying to change this : $( "p" ).on({ "click": function() { console.log( "clicked!" ); }, "mouseover": function() { console.log( "hovered!" ); } }); To look like this: $( "p" ).on({ "click": fnOne(); }, "mouseover": fnTwo(); } }); function fnOne(){ alert("click"); } function fnTwo(){ alert("click"); } But it does not work. How can I make it work?What would be the right way to do this?
  • Jquery validation plugin : checkbox included an input required

    Hi, I am using http://jqueryvalidation.org/ I have a simple checkbox "are you member : yes or no". I put this one required with the validation plugin. Then, if a someone check no, i do nothing more. But, if someone check yes, i want to include another input required : the member's number. And I didn't find how to do it. here the formular part :             <ul class="inline">                 <li><p><label id="inscriptionenligneouinon_membre"> <?php echo $lang['inscriptionenligne_ouinon']; ?> </label></p></li>
  • Perform Click on Submit

    Hi, I have below code. I am using a button to sign in but now I want to perform the button click when the user submit the form by pressing enter on the txtLoginName or txtPassword. How can I do this please? $('#btnSubmit').click(function () { $("#wrapper").hide(); $("#gradient").hide(); $("#wait").show(); $.ajax({ type: 'POST', url: "login_user.php", data: $('#login-form').serialize(), success: function() { window.location.href = 'my.php'; }, error: function(jq,status,message) { alert('A jQuery error
  • Selectmenu and screenreaders: Selectmenu works with NVDA and IE8, but not NVDA and IE11

    Hi there, I'm using a selectmenu widget on my site, and I need to support screenreaders. I've noticed the selectmenu works fine with NVDA and IE8, but not NVDA and IE11. (Probably the first time I've come across something that works in IE8 and not IE11 - it's usually the other way around.) Is this a known issue? Do jQuery UI widgets in general support screenreaders, or is it not something that's tested? Has anyone else come across problems with selectmenus and screenreaders? If so, is there a way
  • jquery mysql

    ON this dreamweaver page I am printing a dynamic table. (link to follow). I have assigned a class to the  TD with the id and with a jquery I can change CSS (color). I want to get the id value to use an update form on the same page. Here is JS so far.. under .click alert (,here'); works but the $row alert is not . How can I get the value of the id? Or how can I assign var lineNum the new value $row_update['id']? link $(document).ready(function() {     var lineNum = 0;   $("td.id").mouseenter(function()
  • Jquery validation for date

    Dear sir,    I have to validate date by using jquery validator date must contain in dd-mm-yyyy format
  • add dynamic error placement in validation form

    I am working on jquery validation.And I am facing a problem in error placement. can I add dynamic error placement just like a add dynamic rules & messages. Actually my validation form has written in jsp. But I am generating a dynamic text field in js file so in js file I validate text fields in looping. Please Let me Know how to add error placement in js file.
  • Jquery validator using date compare

    I am passing date in dd-mm-yyyy format to jquery validator function  i have to compare two text box dates first text box date in dd-mm-yyyy myst be less than second text box date dd-mm-yyyy. This function is not giving proper output  jQuery.validator.addMethod("greaterThan", function(value, element, params) {     if (!/Invalid|NaN/.test(new Date(value))) {         return new Date(value) > new Date($(params).val());     }     return isNaN(value) && isNaN($(params).val())         || (Number(value)
  • Jquery Plugin For MultiSelect Dropdown without checkbox ?

    I am looking for the Opensource JQuery Plugin Which will provide MultiSelect Dropdown without checkbox Plugin Should handle Multiple selection in Dropdown without checkboxes, can select multiple options in dropdown using Ctrl Key Are there any plugins to address the same issue ? Thanks
  • Teach me about the concept of return false and true with functions.

    http://jsfiddle.net/jsfiddle135/avqzcjc1/1/ Function doesn't work.
  • Problems with displaying content on jquery.com site

    I have problems with jquery site. I get some weird symbols instead of real content. See the screen below: It happens in every browser. Other sites work fine. What could be the issue?
  • Button click

    [Q] Why the alert(datas); in the below doesn't show up? Why??? But the alert(datas); shows up if $("#post_button").click(function(){ is placed as the first function. <!DOCTYPE html> <head> <meta charset="UTF-8"> <title> Why not? </title> <script src="https://code.jquery.com/jquery-1.11.2.js"></script> <script language="javascript" src="jquery.timers-1.0.0.js"></script> <link rel="stylesheet" type="text/css" href="chat_css.css"> <script type="text/javascript">        $(document).ready(function() {        
  • need help to get list of links from a file to show up in sidebar menu

    Answered and resolved. Thankyou Jake Hi  I hope someone her can help me.  I want to insert the contents of my sidebar into multiple pages using jquery instead of php. The reason for this is that when I changed over to php with the template I'm using it became unusable. The link only went to download option instead of opening. Therefore I have been exploring the possibility of using jquery to get the same results. I have been searching the internet and prowling through forums for two  weeks now and
  • Uncaught ReferenceError: picturePath is not defined

    apparently i haven't defined the function picturePath, but i'm not sure where or how to. errors occur on 86, 92, 98 <!DOCTYPE html>  <html> <head> <!-- This is a comment tag --> <meta charset="UTF-8" /> <title></title> <link rel="stylesheet" href="generic.css" type="text/css" media="screen,projection" /> <script type="text/javascript" src="jquery-2.1.3.min.js"></script> <script type="text/javascript"> // Global variables go here var picture = new Image(); // functions go below here function startPicturePuzzle(picturePath)
  • Divs & Inputs Leaving Me Flummoxed.

    I have been trying to develop a text-input box inside a div with a border surround - I know this doesn't explain it well so I have made a fiddle that I hope displays the problems I am having: http://jsfiddle.net/a4poster/5qc26b7y/ Basically I want the top div to align with the bottom div while still keeping the hover state or is there a better way to do this - I have been messing around with this for a few hours now and not moving forward with it. Many thanks - truly flummoxed.
  • understanding accordion code

    hey guys ! , i was just checking out chris coyers lessons on custom events and came across the following :  jsbin now when the plugin is called .  can somebody tell me who is passing the two parameters i and el to the faq plugin ??  I mean this line below :  return this.each(function(i, el) { Thank you.  gautam. 
  • wtf cdn https

    Hi there, I have been using the jQuery CDN over HTTPS to serve up jQuery to my site users. Today I see that all HTTPS links to *.jquery.com are redirecting to non-SSL, which is breaking the sites I have. Any particular reason for this change? Also, links to the jQuery CDN from Google search results page again point to HTTPS, but direct to HTTP. Is this some kind of cost-cutting measure?
  • Failing to load jQuery 1.8.3 and jQuery mobile files from code.jquery.com

    I have several sites which are using jQuery mobile and they all stopped working this morning.   I looked in to it a little further and noticed I am getting ERR_TOO_MANY_REDIRECT when trying to load the jquery code using Chrome.   The lines of code causing the error are: <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile.structure-1.1.0.min.css" /> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
  • Submit on Enter Form

    http://jsfiddle.net/kpsk/efL49s6f/ When the focus is on any of the textbox and pressed ENTER key the alert should display. That is the form should submit on enter key press.
  • calling web service in jquery

    I am trying to call the web service web method using jquery ajax. But i dont what is the error in the following jquery script. can any one find the error and give the correct solution. Thanks in advance $.ajax({ type: "POST", contentType: "application/json", url: "WebEmployee.asmx/employeeDetails", success: function (data) { //sucess function }, error: function () { //error }
  • Dynamic Page with FORM help

    I have a page that dynamically changes a div using the below function.  On one of the pages create.html that load into the div is a simple submit form that posts data to a PHP page. When navigating to this page directly (i.e.  pageurl.com/create.html) the ajax function works dynamically and uses the ajax form class to call form.js, but when I perform the same activity when the create.html page is loaded dynamically in the main div it does not use the form.js to process the request and reverts back
  • How to do a post, serialize?

    hi friends, see my code: <!DOCTYPE html> <html> <head> <title> Test Page... </title> <script type="text/JavaScript">             function Imprimir() {                 var a=document.getElementById("xcombcatvar");                  var b=document.getElementById("xcombcatmar");                  var c=document.getElementById("xcombcattipo");                  var d=document.getElementById("xcombcatcal");                  var e=document.getElementById("xcombcatcali");                  var f=document.getElementById("xacantcaj"); 
  • How do I style jquery validate error messages

    These are the current validation rules and messages that I have applied. The error messages work however I would like the text to be red and bold. How and where do I style the error messages?  $("#payment-form").validate({     rules: {         email: {             required: true,             email: true         },         password: {             required: true,             minlength: 8         },         password_confirm: {             required: true,             minlength: 8,             equalTo:
  • a plugin for translate a Html Table to a graph?

    Hi iends, exist a plugin for draw a Bar graph and the datasource is a Html table?     similar to these plugins:   http://www.jqueryrain.com/example/jquery-chart-graph/   any recommendation?   wich think <bout this:   http://www.jqueryrain.com/2014/03/tablebarchart-jquery-bar-chart-plugin-existing-html-tables/   thanks
  • Use Spinner in HTA

    Hello, I'm a complete noob to jQuesry, javascript and also CSS - I'm trying to make the spinner gadget (http://jqueryui.com/spinner/) work in HTA to no avail (the screen comes up with the input field and buttons, but no little spinners). Guidance or pointing to a guide would be really hepful - thanks.
  • tabs and datepicker

    hello, i'm using jquery to implements tabs and datepickers. tabs are loaded via ajax: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//IT" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/themes/smoothness/jquery-ui.css"
  • Jquery mobile textArea autoGrow

    I have implemented jquery Mobile and it work beautifully. I have a small issue : When I open a form with textArea that have already values, they do not autoGrow, I have to set focus on the textArea and then press enter, then it autoGrows. I there a way to force the autoGrow when the form is loaded ?
  • Access elements after form is loaded using jquery

    In the form there are 2 drop down which are created dynamically after the page loads. I have written a jquery function which will be called when 1st drop down value changes. But when I try to access the dynamically created form field value it says TypeError: e.nodeName is undefined. function flavorDefn(e) { var locationid = $(e).attr('id'); var idArray = locationid.split('-'); var id = idArray[1]; var flavorDef="flavorDefs"+id; $("#"+flavorDef).prop("disabled", true); $.getJSON('flavorDefinitions.wss',
  • How to convert Array Alphabetical List with Headings

    I have the below working code (from Stackoverflow), the issue is that the expected output should be <ul>        <li>A</li>       <li>Apple</li>       <li>Apple2</li> </ul> But it generates like below, Please do advise how to resolve this. <ul>        <li>A</li>       <li>Apple</li>       <li>A</li>       <li>Apple2</li> </ul> var arr = ["Apple", "Apple2", "Orange", "Pineapple"]; var $el = '<ul>'; $.each(arr, function(i, v) { $el += '<li id = "header">' + v.slice(0, 1) + '</li>'; $el += '<li id =
  • struts2-jquery - Struts2 jQuery Plugin

    We are using jQuery plugin with Struts2 to display the grids on JSP page. I want to make a grid column hearder as href, and onClick of it a popup should appear to give comments. Is it possible to do and if so how can I achieve it.
  • Stuck for 3 days at this width-height issue

    In my project (currently live for beta-testing at http://goo.gl/XNGnou), I need to find out the width & height of a certain element (image) on a webpage. Basically, the user uploads an image (logo) which is resized to fit a certain space.  Then I use this code to get the image width and height:             $('#banner_468x60 .logo-container img').width();             $('#banner_468x60 .logo-container img').height();              When everything goes well, after clicking Generate, a new page is opened
  • jquery validation plugin with partial view ajax loaded

    I'm using  Jquery Validation  plugin for validate my remotely loaded partial view form modal . var formDataSource = $('#frmDataSource').validate({     rules: {         provider: { required: true },         stype: { required: true },         url: { required: true },         uname: { required: true, digits: true },         pword: { required: true }     },     messages: {         provider: { required: 'Please enter provider name' },         stype: { required: 'Please select type' },         url: { required:
  • Need help with .inArray.

    Hi,  I am trying to use .inArray to compare if a given value is in the array. Code: var init = function(seat){     var seatCheck = 101;     if ($.inArray(seatCheck, seat) !== -1)     {         alert("match found");     } } var bookseat = [101,102,103,104]; init(bookseat); Even though the value is present in the array, it does not find the match and returns -1. Can anyone please let me know what I am doing wrong. Thanks.
  • Cycle 2 plugin (containter height problem)

    Hi, I have problem with container(<ul>) height because here is <li> item height is not fixed(dynamic content) I need four(4) <li> items at once. I want to every time when slide is move down container height is automatic fix according to current four(4) slide. Thanks in advance.         <ul class="hc-content-listing hc-slideshow vertical"                         data-cycle-fx=carousel                         data-cycle-timeout= 3000                         data-cycle-reverse="true"                
  • Newby - Adding a web site "post it" pop-up window.

    I need help. Where do I start? I want to add a help/reminder/post-it style pop-up window While I am, searching for, or while I am on a web site. Lets call it a "helper" window. Not to a site I am programming, but to any site on the web.
  • Download Excel - jQuery

    I use a jqQuery UI Dialog that collect parameters which should be posted to an aspx page that will download a pre-generated excel file  based on the report parameters.  I already have a ReportGenerator.aspx page which when executed opens the excel file    String filePath ="<path>\Graph_IR_Scenarios.xlsx";             String outputFileName = @"Graph_IR_Scenarios.xlsx";             FileInfo fileInfo = new FileInfo(filePath);             HttpContext context = HttpContext.Current;             HttpResponse
  • 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