I have a nested sortable list:
<ul class="testSortable">
<li class="ui-state-default" rel="1">What Can I Say?
<ul class="testSortable" rel="1">
<li class="ui-state-default" rel="4">Total Divisions
<ul class="testSortable" rel="4"></ul>
</li>
</ul>
</li>
</ul>
I'm trying to mak...
I have the following validation:
phone1: {
required: {
depends: "#pri_noPhone:not(:checked)"
},
number: true,
minlength:3,
},
If a checkbox is checked (yes, contact me via phone) then go validate the phone1, phone2 and phone3.
In FF and Firebug, there are no errors. However, IE7 throws an error saying:
a...
I currently use Chrome/Firefox for my web development.
Is there a plugin, or am I just another way, where you can view the HTML source AFTER all jQuery plug-ins have run? I just want to see what and how jQuery modified the HTML?
...
Update: The code below does indeed work as expected, and accomplishes the code I wanted. My confusion was in understanding what I had in my markup when writing the code below - after giving my markup a second look, I realized my code worked perfectly.
I've provided my answer below for all who are interested in the more thorough explana...
When the container is resized,everything inside(text) should also scale accordingly.
Is there a plugin that can achieve this?
...
I have an object with 2 ArrayList properties.
public class TestDTO
{
public ArrayList Test1 { get; set; }
public ArrayList Test2 { get; set; }
}
I am returning the the object as JSON in my JsonResult Action. The SUCCESS from my AJAX call looks like the following but it does not appear to be working. What do I need to do to a...
Are there any resources comparing the adoption rates of the various javascript frameworks similar to tcpi? Basically the number of sites using a particular framework on a time-line would be ideal.
...
I have seen some examples where the birthdate is broken into month, day, and year. Without breaking it up, how can i run a validation for a birthdate field?
<input type="text" name="birthdate" id="birthdate"/>
currently, i only have:
...
birthday: {
required:true,
date:true
},
...
I tried doing an ajax cal...
I'm trying to create a tagcloud for an application. When I click a tag from the tagcloud, the backgroud for the tag must be changed. Here a simple html code for a tag:
<a about="http://localhost/d456c6" href="http://localhost/d456c6" class="tagweight0 Resource">abda</a>
To change the background i'm using the following:
$('tagweight0'...
I'm using JQuery's Sortable (not Draggable or Droppable) and I was wondering how I could highlight the potential drop areas (using CSS) that a user has when the user has begun sorting. Something like
http://www.shopdev.co.uk/blog/sortables.html
but with highlighting the area in which the item can be dropped.
Thank you!
...
As the title says: Is there anything that is for XAML what jquery is for HTML?
If not, would it be possible to create such a framework?
...
I'm using a Greasemonkey script to pull data from the RSS feed here http://www.instapaper.com/folder/48337/rss/11185/QBV0RZfH4KBO7GwgrR3D8b7sv90 and insert it into a page with jQuery. The address returns valid RSS, but when Greasemonkey fires ajax call below it always returns an empty request and fires the error callback. What am I missi...
I'm using JQuery to create a Horizontal Accordion menu (based on the tutorial at Design Reviver. I have it working well, but I need to add a second Horizontal Accordion menu just like it to the same page. I'm sure this can be done, but I don't know how to adjust the script in the head section so that both menus work at the same time. I'v...
Hi All
I'm using this zoom script on my site:
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/minizoompan/
At present, the default setup is that it immediately starts the zoom effect when you hover the image with your mouse.
How can I make it that it needs a click first to activate it? So the zoom only starts on a click ev...
This is an example of my code:
bar = function() {
this.baz = function() {
this.input = $('.input');
this.input.bind("keydown keyup focus blur change", this.foo);
}
this.foo = function(event){
console.log(this);
}
}
Clicking on my input gives me the very input in the console, obviously. How can i get bar as this inst...
If I use
setTimeout(function{$('#myElement').focus()}, 10)`
during the loading of a jquery-ui dialog containing tabs, the rendering of the tabs breaks! Specifically, their background images fail to appear which makes them look like garbage. This ONLY happens when I set a timeout on document ready to focus the first text input in the ...
Im currently using jquery to link all td's to the edit link but i want to be able to only target the td's with the class of edit, and I need the link to find the a tag with the class edit-action.
Any help would be great!
Current code:
$("tr.edit").click(function(){
if(!clicking)
{
clicking = true;
$('a.edit-action', this).click(...
How would I go about telling certain events/animations to fire at a certain time?
I'm trying to make an animated fight scene between a few characters, so what would be the best way to script out their actions like who attacks next and so on?
Here is my sandbox where you can see the 2 left dummies move towards the dummy on the right:
ht...
If you store a value in jQuery.data()
$('#customerName').data('cname','test');
then postback the page will the value in .data() be available when the page reloads?
Thanks
...
I have some message elements like this...
<span class="error message">Whoops! Don't forget your name.</span>
And...
<span class="success message">All done! Thank you very much.</span>
You'll notice that two classes are being applied to a single span element. This is valid markup. How can I select elements with two classes like ...