• Wont remove properties?

    Hello Guys! I have created a calendar and i am currently trying to make the "Add Event" form as user friendly as possible. Like any normal calendar add page i have two input boxes for Date and two for times. Both using jquery Pickers. So i want to use the Duration property, this is the time picker i am useing http://jonthornton.github.io/jquery-timepicker/ So obviously i cant use this all the time unless the dates are the same, so i have wrote some functions to assess that, if they are the same it
  • mobile swipe detection

    hey guys im using a plugin called bxslider and i'm trying to detect when a user swipes the divs. here are the versions i'm using...i have to use jquery 2.2.4 as the errors it creates with jquery mobile. jquery            2.2.4 jquery mobile 1.4.5 html <div class="internet_data">                   <div class="slide slide-selected" data-value="1 GB">1 GB</div>                   <div class="slide" data-value="2 GB">2 GB</div>                   <div class="slide" data-value="3 GB">3 GB</div>                  
  • Using multiple date range pickers on same page

    Hello! I'm using the JQuery datepicker with date range. So I have two input fields with a from-date och a to-date.  The problem is I can only have one pair. I want to have several date pickers on the same page. How can I do that? Thanks in advance!
  • Save position of draggable item

    Hi there, I have looked through these threads and can see this question has been asked before, however i am unsure how to implement the answers to exactly what i need. Here is the link to what i have so far: http://mereton.com/dragtest/drag.html When users of my site drag the items around, and then refresh or leave and return to the page, i would like those items to remain in the same place.  Is this possible and if so, as i am a bit of a newbie i would really appreciate to know how to apply it to
  • Hide an element with jQuery/javascript when the user is logged in

    Hi All, I would like to hide a menu item when the user is logged in already, here is my code but it doesn`t work properly: I am checking if the user is logged in - (the top line works as it displays the alert message if I add one), but for some reason it doesn`t hide the menu item and the megamenu looks messed up when the user is logged in. What would be the correct way to hide it? Thank you function hideing() { if ($('#dnn_dnnUser_enhancedRegisterLink:contains("SuperUser Account")').length > 0)
  • How to set a default value with $(selector).val()

    Hey, is there any way to set the default value returned by $(selector).val()  while the object (text, textarea...) has no value? What I mean is the way something like below: $(selector).val().setDefault('myDefaultValue'); Right now the only way is doing some little overcode like: var value = ''; value = $(selector).val(); if (!value) {       value = 'myDefaultValue' } Cheers Andrzej
  • My input fields disappear!

    I have the following form:   7 <form method="post" action="/register">   8     <input type="email" name="EMA" required>   9     <button type="submit"</button>  10 </form> which I validate like this: 281     pricing.find('.SignUp form') 282         .ajaxForm(payment) 283         .validate({}); but when I enter "x" (invalid) into the e-mail field the system displays "Please enter a valid e-mail address" and destroys my input field (I'm no longer able to enter information because the field is no longer
  • Datepicker - Select a Date Range

    Seems simple enough but not able to do it. Datepicker - Select a Date Range - From Field click a date and then To Field should auto populate to next day eg. From Oct 15,  automatically To should go to Oct 16. Thanks in advance Pete
  • Droppable to specific locations

    I'm trying to convert my Adobe Flash game into HTML, but not having luck. Can anyone steer me in the direction of a script for droppable boxes into specific targets? It's a lowercase to uppercase matching game so the box with "a" can only be dropped on "A". I can get all the little parts going, but any box can be dropped anywhere now.
  • Dynamically loaded page

    I have a page index.php where I have jquery being used. One of the uses is to call another page. When that page is called and loaded I want to use jquery from index.php? Maybe even do a ready event. How can I do this from my ajax loaded page?
  • jquery -changing css property and repeating

    Hey, so I have this sprite sheet http://codepen.io/benasl/pen/yabpxo that I want to be changed to another one after it ends, and after the second one ends the first one needs to start again, and so on... I managed to do this with just changing css properties, but now how do I make them loop?
  • Tab navigation freezes other tabs if going forward but not backwards

    We have a large web page with 15 tabs. 4 tabs were recently added. Some of the tabs have a page of data appear when selected.  The new tabs have forms that when filled in use an AJAX call to get data to display in a  in a Jquery table. We noticed if a select a tab and then go to the next tab (on the right), It is is broken(unresponsive). The strange thing is if I start with the tab on the right and go to that tab (that broke above) it is OK.
  • touch punch customization

    Hi guys, I'm New is there anyone among you who could help me in the integration of touch punch on a web appication? I am not very good at js.... the site is developed in codeigniter and I'm taking care of the frontend part ... but I can not implement touch punch to resize and rotate on mobile devices ... currently the sistempa is a bit uncomfortable for mobile devices ... thanks... the site is http://www.coverdesign3d.com/design/index/77-cover-samsung-s6-edge
  • wat is this??

    how to use query sting
  • Populate span tag(s) with data from a json file

    On  THIS  page, I have listed some dummy estates and hard-coded, for each one, a span (with the text "VEZI TELEFON") that when clicked, reveals a phone number. I want every phone number to be retrieved from a JSON (or PHP) file called  telefoane.json  that has the content: { "telefoane":[{ "id":"1", "tel":"0743127315" }, { "id":"2", "tel":"072245875" }, { "id":"3", "tel":"0756129458"
  • How to check the entered data exists in database or not?

    Dear Team, Greetings. I want to validate the one field with my mysql database. I am having one filed with hotel_name and i want to check that the entered hotel name is already exists in database or not. I am using Bootstrap, JQuery and PHP ad below is my code JQuery Code:-  ------------------------------ $('#form_add_hotel').bootstrapValidator({ message: 'This value is not valid',             live: 'enabled', feedbackIcons: {             valid: 'glyphicon glyphicon-ok',             invalid: 'glyphicon
  • call function without using firbug

    I am getting problem to debugg window.location() without using debugger. This is working while i am using firbug.... plz help me
  • jQuery drag and drop issue

    I am facing a couple of issues with jQuery drag and drop.Below is the link to my code https://plnkr.co/edit/uKs7FHvVQqSizcig7sP8?p=preview Issue 1: On chrome, after drag, the dragged element is NOT draggable anymore, but rest all elements are. For instance, say, if I drag "Test1" over "Test 3", then after the drop, Test 1 is not draggable but other elements are. It happens every time with the dragged element Issue 2:  Though it works on Edge, it doesn't work on IE at all. Once dragged element is
  • jQuery bug - height() calculates rounded values

    Hello I found a bug in jQuery today. the height() attribute calculates rounded off values mostly. am i right in thinking so?
  • Code getting triggered over the wrong element

                            <li class="fa fa-plus fa-fw menu-parent"><a href="#"><span> Productos </span></a>                             <ul class="menu-child">                                 <li class="fa fa-gift fa-fw"><a href="?mod=products"><span> Productos </span></a></li>                                 <li class="fa fa-server fa-fw"><a href="?mod=products&action=categories"><span> Categorias </span></a></li>                                 <li class="fa fa-apple fa-fw"><a href="?mod=products&action=brands"><span>
  • More DIV-Boxes one Function - How to do

    Hello! I'm starting with JQueryUI, but i have a Little understanding Problem how the draggable-function works with more div's... I have this Code, and it will work well for Box1, but not for Box2. How i can define the function so it will work also for Box2 ?   <script> $( function() {         $( "#box1" ).draggable({ containment: "parent", scroll: false, snap: true, snapTolerance: 5});      $( "#box1" ).resizable();      $( "#box1" ).mousemove(function(){        var coord = $(this).position();  
  • How to reset the degrees number when it went over 360 degrees? (Circle)

    Hello,  I made a circle which is draggable. Now if I dragg it like twice around, it says it's at 720 degrees. I want the count number to reset when it went once around. So if I dragg the circle twice or more around it still says 360 degrees.How do I do this? Regards, Jelle
  • Clone Duplication And Imprecise Drop Location Issues

    I have a dropdown menu which contains a table and inside this table are draggable icons. I was able to drag and drop the clone of each icon into a drop zone.  However, once the clones are dropped, when they are dragged they create duplicates of themselves. Also they go to the top of the drop zone instead of remaining at their dropped location. Please see my markup and code here.
  • responsive menu should close when clicked

    Dear Sir http://photohouse.net.in/index21.php the menu works perfectly fine  on PC, Lap Top sand even Mobile     However in case of Mobile (when I view it on Mobile) and click on internal link  for navigation e.g. About us the navigation / scroll happens  but menu remsains open I want the menu close rather collapse and then navigate to the internal link or vice a versa Please help    My Jquery code ( function( $ ) { $( document ).ready(function() { $('#cssmenu').prepend('<div id="indicatorContainer"><div
  • How to change a file's access path that is called in a function

    I have a function that calls a particular file .pdf however need to be able to change this file access path, it is possible? <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>         <script type="text/javascript">             $(function () {                 window.onload = function abrirPdf() {                     var iframe = $("#LoteSlips");                     iframe.attr("src", '<%=arquivo%>_ERRO.pdf#zoom=200&page=<%=i%>');                  };          
  • Question on terms

    Quick question ... what does '.map' mean in the filename? Ex: jquery.mobile-1.4.5.min.map Is it essential to include it? Also, the W3C Schools demos are fantastic but they don't say which demos use which CSS files.  That's not too horrible -- I'll just play around and see what does what. Thanks! Mike
  • How to make a custom map ??

    Hey guys , good day , i need to make the followng map: I just taught i would ask here if somebody  has done something similar before ? Or how do i go about doing this ?? I found this Plugin . But will i beable to make my custom map and also add my custom tooltip ?? Thank you. Gautam.
  • how to validate the div id value using JQuery bootstrapValidator??

    Dear Members, Greetings.. I want to validate the stars rating value that is stored in div Id and i want to use the div ID value to validate the stars rating in botstrapValidator. As, I know the methods, how to validate the input fields but dont knw how to validate the div id value.
  • Miltiple Ajax post call

    I have been tried for whole day and still can't find a solution to my jquery multiple post request problem. When I fast click Button-A then Button-B to trigger ajax call, the result on success: $(ID).append(data) completely goes wrongly into different target ID. I tried set async:false but it is deprecated. I'm using jquery ver 1.11.2. Thank you in advance for any help.
  • click function (multiple clicks and multiple divs)

    https://jsfiddle.net/zdtgo5zp/ I am struggling with the click function. I have three divs: one with some text that I want to change, and two divs that I want to be clickable. If I set up the click function to only work once on one of the divs, it works, BUT, I want to be able to click on it again and revert the text back to the original AND I want the process to work on multiple divs, which I am struggling with. Thank you in advance!!!
  • How can i do 2 different animation events like close or open with animate() just with one button(this button rotate to open and close too)?

    please can someone help me? I'm trying to do an animation. This animation consisting of 2 elements: 1.- Button (glyphicon-plus-sign from Bootstrap)  2.- and a Box-Content with width:12% .  when we click on the button, it rotates to negative direction and at the same time open the Box-Content width:40% with animate() which is custom animation from jQuery.  Now my Problem is: i don't really know, how to return the Box-Content to the original width which is 12%  and at the same time rotate again the
  • Help on this while loop please. Thank you!

    Hey guys I am creating this code for a ticket machine. The dialog comes up for the user saying how much they want to pay. I want them to pay more than or equal to 60. Which works as I want it. However, how can I execute that piece of code again inside the while loop? because I want if they enter less than 60 the same dialog box appears again.   public class TicketMachine2 {            public int money(int getprice )         {             while (getprice <= 60)             {                         
  • After click on menu button menu open on left side but when click on More all ul has opened. I want only related UL will open. Please Help i am fresher in Jquery.....

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script> $(document).ready(function(e) {    $("button.menu-open").click(function(){ $("body").addClass("stickmenu"); }); $("button.menu-close").click(function(){ $("body").removeClass("stickmenu"); }); var kvd = "ul>li:has(ul)"; $(kvd).addClass("parent-item").prepend("<div class='buttonlink'>More</div>"); $(".buttonlink").click(function(){ $("ul>li").closest('ul').find('ul').toggle('slow'); }); }); </script>
  • What is the correct way to Edit jQuery UI ??

    Hey guys , I have a very biginner question . So the default jQuery checkbox looks like so: but what i want it to look like is like so: What is the correct way to edit jQuery UI. For some reason the fiddle won' work :( FIDDLE HERE Thank you.
  • price dont show after selected

    Hello goodnight or goodmorning.I want to show a price different for each element of the second drop-down list without reload the page, I have received this solution but it is not not comply with my page because when I selected a element the price is not not displayed. I don't know if the problem is my HTML code or if it's my jQuery. I don't want to recover the price, I just want to show it. I have discussed this on a forum but I have not found the solution, I really want help,thank All sell phone
  • .css is not working

    https://jsfiddle.net/martaklopf/q62yttrc/ Hello! I was trying to do something really simple, which is: -hover on the date and get text in another div to change -once the text in the second div changes to a specific set of words, the background color changes. Neither of them are working in the jsfiddle I linked, and I feel like there is a really obvious solution as to why but I can't fissure it out. Thank you :)
  • Adding some css to inner most <ul>

    Hello, I have a JSFiddle over at: https://jsfiddle.net/hgbh43jf/ I am also including a screen shot of what I need this page to look like. What I need is some jQuery code that can traverse this tree and find the most deeply nested  <ul> and add the classes as shown above and set the background to yellow for the  <li>'s Thanks, Jim
  • Padding on all td except rows with certain class name

    This is more like a pure css question where the solution might not need any JQuery. I need to set padding on all table td except td within rows with certain class name. For example: <table border="1">   <tr class="no-padding">     <td>Row 1 with NO padding</td>     <td>Row 1 with NO padding</td>      <td>Row 1 with NO padding</td>   </tr>   <tr>     <td>Row 2 with padding</td>     <td>Row 2 with padding</td>      <td>Row 2 with padding</td>   </tr>   <tr>     <td>Row 3 with padding</td>     <td>Row
  • Jquery Tokeninput

    Hi    I am using Jquery TokenInput . I want to save values using Ajax in database. If multiple Tokens multiple records should be saved. <div class="form-group">                     @Html.LabelFor(model => model.CategoryID, "CategoryID", htmlAttributes: new { @class = "control-label col-md-2" })                     <div class="col-md-10">                         @Html.DropDownList("CategoryID", null, htmlAttributes: new { @class = "form-control" })                         @Html.ValidationMessageFor(model
  • How to use a Navigation-Part in JQuery (ul.nav li a)?

    Hey guys! I have a question about, how i can use a class for an jquery action. Here my example: .balken {     height: 100px;     width: 100%;     background-color: white;     border-top: 5px solid lightskyblue;     display: flex; } This is a bar at the top, in it is a picture and a navigation bar, you can see that they a in a flexbox. .sticky {     height: 50px;     position: fixed;     border-bottom: 2px solid red;     border-top: 0px; }When you will scroll, the class sticky will be added to the
  • 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