• About learning Jquery mobile

    Hi       I have owned a old web site (created by Dreamweaver) which is an online clothing shop which was set up on 2010. So I have below questions: 1.I have realized that the content of my old web page shown on the mobile screen is very small and very inconvenient to be used in the mobile. Therefore, should I need to write a new web page (by using jquery mobile)  to meet the mobile needs of just revise some HTML contents in the old version? 2. Anyone can introduce some books or some learning ways
  • please i have this sample code,but i want to add more textbox like having questions then sub question

    <script>         var count = 0;         //<strong>Applicable keywords:</strong><p id=\"key'+count+'\"></p>\n\         $('#addQuestion').click(function () {             count+=1;             if (this.id === 'addQuestion') {                 $('#questions').append('\                         <div class=\"col-md-12\">\n\                         <div class=\"alert alert-info alert-dismissible alert'+count+'\" id=\"qkey'+count+'\" style=\"display: none;\" role=\"alert\">\n\                             <button
  • appendTo makes HTML code not to work correctly

    Hi, I'm trying to add some HTML code inside a div using appendTo. The HTML code is added and I can see it in the screen, the problem is that I can't "close" the div using the link... but I can "close" the div when the HTML code is loaded in the page (when the HTML is in the website). This is my code: jQuery(function(){ jQuery('.showWindow').click(function(){ var id = $(this).attr('target'); $( "<div id='"+id+"' class='window'><div class='window-bar'><div class='window-title'>"+id+"</div><div class='window-tabber'><span
  • Simple question about the efficiency of $().addClass

    Reading through the jQuery uncompressed code, I noticed a lot of functions have the "proceed" validation variable. Specifically I'm looking at the addClass function: proceed = typeof value === "string" && value; Wouldn't doing a null check first be more efficient? If it were null wouldn't it return false on the first check instead of doing at least two checks? proceed = value && typeof value === "string";
  • Dialog width is not working in FireFox

    HI, I have this dialog : dialog = $("#dialog-form").dialog({ autoOpen: false, height: 500, width: 720, modal: true, buttons: { "Create Rename Rule Type ": addUser, Cancel: function() { dialog.dialog( "close" ); } }, close: function() { form[ 0 ].reset(); allFields.removeClass("ui-state-error"); } }); It's working fine in Chrome, but not in Firefox. thanks.
  • Problem in using JQuery UI with telerik controls.

    I am trying to open aspx page using jquery UI dialog,which is having telerik controls inside it.But it is not working,Please give me a solution for this.
  • jQueryUI upgrade from 1.10.4 to 1.11.4

    I am upgrading jQueryUI  from 1.10.4 to 1.11.4. In 1.10.4 there is "base" theme folder. But I am unable to locate similar theme in jQueryUI- 1.11.4. What is the equivalent on "Base" theme of jquery-ui-1.10.4 in jquery-ui-1.11.4 ?
  • Newbie at ThemeRoller

    Hi, I am trying to install the themeroller template with my plugin, but I can. Could some one help me with this? There's always a message that says there's no xml file.  Best Regards
  • Problem with create div section and button inside from a form

    Hi: I am trying to create a div and inside a button with their properties css, from a form but in browsers listed and said button disappears ( department ), which after I'll add employees, my code is correct because dreamviewer live mode works well , without disappearing . alguen know what is happening please thank you.
  • Page Transition, Removing Content Scroll.

    Hi, with JQM is it possible to transition to a page without the current content of the page you are viewing defaulting to the top of that container before doing the necessary transition. Thanks in advance.
  • Making an interactive flag by constructing div's in columns and rows, and a clickable div too.

    html section <!DOCTYPE html> <html>          <head>         <link rel="stylesheet" type="main/css" href="main.css" />     </head>     <body>            <div class="grid">   <div class="col">   </div>   <div class="col2">   </div>    <div class="col3">   </div> <div class="col4">   </div>   <div class="col5">   </div>    <div class="col6">   </div>     <div class="col7">   </div>   <div class="col8">   </div>    <div class="col9">   </div> </div>           <script src="https://code.jquery.com/jquery-2.1.3.min.js"
  • Need to use jquery to increment a table cell's value by 1 each time the button is clicked

    Jquery newbie here. I have the following html: <table class="myTable">                            <tr>                         <th >Name</th>                         <th>Age</th>                                  </tr>                                     <tr>                         <td>Joe</td>                         <td id="joesAge">35</td>                       </tr>                                      <tr>                           <td>Becky</td>                         <td id="beckysAge">40</td>
  • resizable stops working iin a div if a value is assigned to it

    I have several divs that I want to position over an image -  so I am using draggable and resizable to do this. Everything works fine until I assign a value to the div. Here are my three functions - the first one assigns a value to Div0. As soon as a value is assigned to it the resizable doesn't work for Div0 - the other divs (1,2,3) work fine.  (The drag still works  for Div0 though). So how do you assign a value to a div without blowing up the resizable functionality? function loadVals (){    document.getElementbyId("Div0"),innerHTML
  • F5 in chrome then the theme go white

    Hi  if I refresh with F5 in chrome then the theme go white  how can I fix this  Regards Sigster <? session_start(); if($_SESSION["strUserID"] == "") { header("location:index.php"); exit(); } ?> <!DOCTYPE html>  <html>  <head>  <title>List</title>  <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="theme/jquery.mobile-1.4.5.min.css"> <script src="theme/jquery-1.11.2.min.js"></script>
  • Avoid multiple clicks to submit a form in IE...Works well in chrome...

    Please find below file code where multiple file upload functionality is given. On click of upload link it opens input file browser window where we select file and then click on submit. In chrome, submit button submits the form on first click but In IE, it does not submit the form on first click. In IE, If we select one file using upload link then submit button submits the form in second click. If we select two file then it submits the form in 3rd click and accordingly. Please let me know how to stop
  • .load() and .clone() doesn't work together

    Hello I would like to clone an image which is loaded with Ajax, here is my HTML code : <div id="mydiv1"> </div> <div id="mydiv2"> </div> And here is my Javascript code : $(  "#mydiv1"  ).load(  "/myimages.html"  ); $(  "#mydiv1 img"  ).click( function ()  {   $(  "#mydiv2 img"  ).remove();   $( this ).clone().appendTo( "#mydiv2" ); }); But nothing happens, any ideas ? Thank you !
  • switching languages -- need to make accessible...

    hi, I have a site where you can switch betw two languages, I'm testing for accessibility in FF by turning off CSS..  I'm hiding elements in the non-default language (language that's not the 'current' language... lang is set when pg loads (done w/local storage) or when user clicks on lang cta... right now when load in FF w/o CSS, elements in both lang's load... I'm hiding the non-current lang in jQ by using .hide(), but this does not work when CSS is turned off...  but other aspects of JS do work
  • JQUERY beginner help?

    Hello all! I'm new to programming. It's a new concept to me and I'm trying to learn it. I'm struggling with a task and I would very much appreciate some help if possible! I basically have to create a page with a "Add Paragraph" button. Every time this button is clicked, another paragraph must be inserted into the content. The second part of the task is to have a text area, and once the user enters something in this text area, a box appears saying "welcome user" or something similar to that. Does
  • Need help creating a console/terminal

    Hi Fokes. So im trying to make a animated console with jQuery So far I have just made a div and entered alot of <p> tags in it, with some styled <span>. It looks like this so far: http://prntscr.com/6p9rhq I wan the text to come 1 by 1 under each other ofc, since i made the p tags, with some sort of delay. The div is fixed, so I want the text to continue under the title bar thats in the div. I thought I could make something like this $( "#consolebg" ).append( "<p><span class="author">Generator></span>Preparing
  • JQUERY AJAX Success

    Good Evening, I have been hunting around for a solution to my problem and I cant find one anywhere! (So if its out there and I have missed it, I am very sorry for wasting any ones time with this post.) I have an Ajax call (shown below) that calls a php page to return some data pre-formatted into html. The call works fine and the data is returned into the value 'html', I know this (I think) because if I change Line 11 to Alert out the Data I can see it. My problem is I would like to change the success
  • Need help with customizing ui slider

    Hello guys. Im new to jQ and jQ UI but I have managed to get pretty far by myself. I have really struggle the last 4-5 hours. Searching for all kinds of solutions, but I CAN'T really style the slider button at all! I have tried all sorts of .ui-slider-handler class but It wont style at all.. So I really need your help with this! I have only managed to find 1 way to style the inner slider with a different color. I would also like to know where I can find all the css classes for styling. So far I have
  • Swipe to Navigate page limitation

    Hunting around for a "native" jQuery Mobile widget to manage a photo gallery, I liked the "Swipe to Navigate" demo on the jQuery Mobile site and decided to give it a try:  http://demos.jquerymobile.com/1.3.2/examples/swipe/swipe-page.html After struggling a day or two, I finally got it all working, using the latest stable version of jQuery javascript and CSS (jquery.mobile-1.4.5.min.js and jquery.mobile-1.4.5.min.css), plus the javascript, HTML and CSS provided in the demo.  Everything was going
  • Newbie: tabs to accordion slow?

    Hi,   I'm facing a weird issue. I used a "easy-tabs-to-accordion" responsive plugin with jQM 1.4.5 and, while it works fine on desktop, but on Android and iOS slows down the jQM page loading on which it is present when there seems to be more entries and/or each entry has longer content. I tried a different plugin ("tabber") with the same result. I wonder whether somebody has come across that and has some advice. Basically, I need vertical accordion for mobile but want to change it to horizontal for
  • Internet Explorer z-index problem with lightbox popup - can jQuery fix it?

    Hi folks, I am working on a site and seem to be having a major issue with Internet Explorer and z-index. If you visit this website and click the "Rewards Store" down the left hand column, it has a lightbox popup that creates an overlay but I cannot get the overlay to go behind the login box popup. www.allfix.co.uk Any assistance would be much appreciated!
  • Add multiple new <li> items in existing <ul>

    Hello, I'm able to add one <li> using .insertAfter, .append or whatever. However as soon as I try to add multiple <li> items it fails. Any ideas? Thanks, Emma
  • Popup issues

    Hi, I have some issues with my website and the popup :'( help me please... The popups just can't close when I clique on the shadow panel (which opens on click). + the popups are several in a page ... bad ! Help me please :) Here is the page to see : http://mecraft.fr/test2.php
  • Need to find common json object in multiple arrays.

    Hi I have a requirement where my deffered call gives me multiple arrays of JSON objects and i want to display only the common objects present in all arrays.I did some code in JSFiddle and its working only for 2 arrays but i want to work for all arrays as i am getting dynamic no of arrays. My code below :         var array1 = [                      { tagId: 1, tagName: 'tag 1' },                      { tagId: 2, tagName: 'tag 2' },                      { tagId: 3, tagName: 'tag 3' },              
  • URL redirection after login.

    I'm using the following code, where the token is generated on page load. when the login is done it is redirected to AfterLogin.html page, the below code is for, when user entered to index.html page in another browser tab it will be redirected to AfterLogin.html page, the problem is even after the user is logging out and after page load it is redirecting to AfterLogin.html, How can i prevent that? $(window).load(function(){ if(localStorage.getItem('token')==null){ $.post("Session.php",function(data){
  • email validation usiing jquery validator

    How to do email valdiation using jquery validator
  • Need help submitting form using .submit()

    Hey Guys,  I am trying to simply submit a form when clicking the enter key. For some reason the form does not do any submission. It will do other things like if I do an alert("Hello World") when clicking on enter but not submitting the form. Can someone help me figure out why this isn't working below is the code Thanks <form id="form" action="radio.html" method="post"> <input id="1" class="rad" type="radio" name="rad"> <div class="text_1"> Some text 1 </div>     <input id="submit" type="submit" value="submit"/>
  • Auto adjust interest rate base on selected terms

    I have text field where users will input the terms example, (24,12,8) months, and I have text field for rate where the result of terms and given multiplier will show. I want the rate will auto adjusted when I change the terms. based in given computation. example only: 24 (months) x 0.02 (given) + 1 (given) = 1.48 (rate) The problem is I didn't get the correct result on rate field when I change the terms. any ideas? This is what I've done <script type="text/javascript"> $(document).ready(function(){
  • Getting event object in droppable.accept

    As it stands, the `droppable.accept` callback only receives the object to be dropped. What should I do if I want to check the state of, say, shift key (aside from monitoring its state with a global handler; or modifying the jQUI library to pass the object along)?
  • Newbie: mini listview?

    Hi,   Is there a way to have "mini" listview that has minimal height? Consider a listview that is inside a panel which is then shown as sidemenu? Thanks in advance and regards
  • Selectmenu: custom separator in multiselect

    The separator displaying the selected options in a multiselect selectmenu is a comma. This looks strange when options are sentenses with capitals. Example: http://jsfiddle.net/t2oh50e0/ Is it possible to change the separator from comma (,) to semicolon (;)? Now I have to modify the JQM source, but I prefer not to. Thanks!
  • Keeping epanded Treemenu open

    Hi,  I think this question has been asked before but I can't work out from other answers how to make mine work from it.  I know next to nothing about Jquery but have the below script on an ASP.NET MVC 5 _Layout page <script>         $(document).ready(function () {             $(".treeview li>ul").css('display', 'none'); // Hide all 2-level ul             $(".collapsible").click(function (e) {                 e.preventDefault();                 $(this).toggleClass("collapse expand");              
  • Newbie: Responsive tiles in jQuery mobile?

    Hi,    Is there a best responsive tiles plugin for jQuery mobile along with a working example? Web searches gives some like masonry and others. Wonder whether somebody can share real-word experience when using with jQuery mobile in a hybrid application? Thanks in advance and regards
  • Cut paste event for samsung

    Hi, I'm using cut paste events for my web application. but its not working for android devices like samsung s2/note. I've used like: $("#txt").bind("cut paste",function(){ alert("Hi"); }) <input type="text" value="hello">
  • Input slider (mini version) overlaps value

    Is this a bug or is there something else wrong? Open the Slider widget demo (I use Firefox): http://api.jquerymobile.com/slider/ The mini-version looks wrong when I make the window small as a mobile phone:
  • Jquery interfering with menu function

    I designed my site using a Bootstrap One-Page template.  Loved the functions, but I wanted to build it so the site will jump to pages rather than scroll down within one page. It's up and built, but the Menu doesn't link.  If I remove the   <script src="js/jquery-1.10.2.min.js"></script> file my menu works perfect but my galleries no longer work. Does anyone have a fix for this?  I'm new to Jquery and at a bit of a loss.  I love the site as is, so if i can just get that menu to work that would be
  • Checkbox filter

    Hi guys. I have a simple HTML table that I would like to filter with checkboxes. Here is my example: http://jsfiddle.net/51wwnyeg/1/.  As you can see, if you click on the checkbox, it filters the table and only shows rows with city you clicked on. But my problem is, it only works with one checkbox checked, if I check multiple it doesn't work. Any ideas? Thanks!  
  • 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