jquery

Date Range Validation Error

We are using MVC Validation Model to do both client and server validation. On the client side, we are using jQuery. Everything works great except the jQuery that is produced to validate a date range. We are always getting the error message displayed that says the date entered is not within the range. Here is what I have: Relevant Model ...

What is the best tutorial or tutorials on how to make a tooltip using CSS or JQuery or Both?

Is there a good tutorial on how to make a pure CSS tooltip? Is there a good tutorial on how to make a tooltip using CSS and Jquery? ...

jQuery opacity animation

Hi, I am making a website, and it allows users to change view options. I use jQuery to smooth animations for font changing. It fades the whole page out and back in again with the new fonts. The fade out animation is fine, but when it fades back in, there's no fade. It just pops up, no animation. The problematic jQuery is in http://xsz...

Is there a way in javascript/jQuery to perminantly store data?

Is there? I don't know. I've been hitting my head against a brick wall with ways to possibly do this without using a server-side language. So far my code runs well locally as well as on a server - I'd rather not have to use a server-side language. Well, there's the challenge. First one with a correct answer wins.... uh... points. (Oh,...

Javascript Loop & setInterval

This js will take a value, subtract X amount from it, and then count up to that value. I attempted to accomplish this task by doing a simple while loop, but I couldn't get it work. I was wondering if anyone could comment on how or why the while loop method below doesn't work. This is the only way I could get it to work: function _in...

CascadingDropDown onchange handler

Is it possible to use an jQuery change() handler with an ASP.NET AJAX CascadingDropDown? I'd like to change the value of another dropdown on the page, which is unrelated to the cascading behavior. The following never executes: $('#<%= ddlFromCompetition.ClientID %>').change(function() { $('#<%= ddlToCompetition.ClientID %>').value = $...

how to get a default value from a checkbox element?

my code: <INPUT TYPE="checkbox" NAME="cb" value="1"> after submit form,i can get cb==1 ,if cb element is checked, i want to get cb==0,if cb element do not to be checked,how to implement it? BTW: can't change receive page,like: if(cb==null)cb=0;// no no no.. i want implement it at web front client. i tried like this: <INPUT TYPE...

jQuery parents (nested divs) change class

I'm trying to learn jQuery I want that, when I hover a children, he changes (rose in the image) the class of parents (XI). I believe that must be something like that $(this).parent().addClass("XI"); You can copy and save it near jQuery <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-str...

jQuery UI sortable & selectable

Hi, Does anybody know how to combine jQuery UI selectable and sortable ? This script: http://nicolas.rudas.info/jquery/selectables_sortables/ doesn't work in Chrome and it also has plugin modifications. Thanks ...

Jquery animation plugins HEAD versus BODY

with many things we do we reference external jquery plugins in the head and do things in the head like $(document).ready ..... We'll we are using ONE CMS that does link Jquery proper in the head itself, but we can't put anything in the head ourselves and just in the the body. My question with regards to javascript animation and other i...

Any way to make jQuery.inArray() case insensitive?

Title sums it up. ...

jquery hover/change css property help

Hi, I'm new to jQuery and I'm looking for a simple script (or maybe there's a simpler method) where if a user hovers over an element, another element's css property changes. For example, hover over this image and "border-bottom" on another element changes color or something, etc. thanks ...

Jquery UI datepicker ugly when used from google CDN

Hi all, I am using Jquery for the first time. It is exciting, but I got some layout problems. First things first, here is the site I am developing: http://davedev.com.br/projects/jdc/v1/pt/reserva.php (it is on brazilian portuguese, but the field I refer to is labeled "Data"). OK, so I am using Jquery and Jquery UI, as well as Le Frog...

How can I select the input child of an adjacent row using jQuery?

I'm hoping someone can help me with the syntax for a jQuery selector. I just can't get it to work! I'm trying to select the input field that relates to the table row that contains a div with class span. Here's the HTML: <tbody> <tr><th scope="col"><label for="username">Username</label><br /><?php echo form_error('username');?></th></t...

problem with the Autocomplete() Jquery method

I have a text field 1 which Iam trying to attach the autocomplete to that field when i enter the textfield1 value the request goes to php page and which accepts a parameter. and it should return the response .Iam not able to get the response .How do i get that $("#txt1").autocomplete({ source: "getpeople.php?term="+$("#txt1").attr...

Porting PHP/jQuery application to Java/Wicket

I'm porting working PHP application to Java/Wicket. I have a lot of complex, well written jQuery/javaScript which I would like to reuse and not change too much. Obviously I have to change urls in ajax calls and rewrite the server side scripts from PHP to Java. I tought this task would be simple but somehow I can't figure out how to write...

Progress Bar using jQuery with a Grails backend?

Hello, I've written an excel upload function that allows a user to upload an excel sheet through a web interface and it will commit it to a table. The problem is that with a table with many records, it takes some time to go through each record and check for changes, so it tends to hang. What would be the best solution for a progress ba...

Client-side Javascript code to strip bogus HTML from CKEditor

I believe this may be related to http://stackoverflow.com/questions/1038129/need-pure-jquery-javascript-solution-for-cleaning-word-html-from-text-area But in my case I am using CKEditor; however, before sending the data to the server (or after receiving it back) I'd like to strip out "junk" HTML tags and comments such as those that appe...

json return empty array

Hi all, when my page loads, I'm using .ajax to calls server side code and return json. The issue I'm having is I get an empty array. So inside my "success: function(data)", it's saying data[0].id is undefined. Is there any way to handle this? ...

JQuery function "On tick" (Not "On click")

Hi all, Is there any way in JQUERY to trigger a function when a checkbox has been ticked or unticked? NOTE: I dont want the "click" function because I use another buttons to tick or untick 20 checkboxes at the same time for example. (and in that case I have only 1 click, but really I need to do the "click" function 20 times, one per ea...