I have a check box with text next to it. I want to toggle the text 'YES' or 'NO' when the checkbox is selected and deselected. I am having a hard time with this, does anyone have an example of this? I can't get Jquery to respond to the state of the checkbox.
Thanks
...
I am getting some XML back from an AJAX call (no surprise) and I want to do something but only on certain nodes and something else on the rest. For example
<xml>
<node name="x">
</node>
<node name="x">
</node>
<node name="y">
</node>
<node name="z">
</node>
</xml>
I want all the nodes with name x to go to one table and...
Here's the code I'm using
$(document).ready(function(){
$('#slickbox').hide();
// toggles the slickbox on clicking the noted link
$('a#slick-show').click(function() {
$('#slickbox').show('slow');
return false;
});
// hides the slickbox on clicking the noted link
...
i want the draggable object to revert back to its original position when i click a button.
i used 'destroy' option but it doesnt seem to work. it disables the dragging but doesnt revert back to original position.
can someone help?
EDIT PART:
$('#Zoom').toggle(function() {
$("#draggable").draggable({});},
function() ...
I want to create my own event - OnPositionChange. Event implementation of course is not a problem. The point is, how to trigger it when top or left style has changed? Should I overwrite prototype of $.css() function, or is there a better solution?
...
How do I handle the click of a checkbox to show another control preferrably a user conrtrol (ASP.NET ) dynamically.
...
I'm trying to get a json serialized object from within an MVC user control using jQuery. The problem is the result coming back is the full HTML for the page that contains my control. The page and the control use the same controller. I've tried breaking on the method I'm calling in the controller and it never gets hit. I've tried vari...
I am working on a ASP.NET MVC web site that has multiple submit buttons. i.e.
<input type="submit" name="SubmitButton" value="Reset" />
<input type="submit" name="SubmitButton" value="OK" />
<input type="submit" name="SubmitButton" value="Back" />
I need to allow users to quickly submitting the form by pressing the 'Enter'...
First off I don't know much about regex and need to buy a book because it's has proven to me to be difficult to pickup.
Ultimately I want to take a dom element, and replace text within straight brackets "[" and "]" and insert a link around the text, and there may be multiple bracket sets in the string.
function changeTip() {
...
I want to know if, when I make a $.post(...) with jQuery, does any cookie is sent to the server in the post request?
Thanks!
...
is there a jquery plugin or is it relatively easy to do?
There is a text field where users will be entering an amount. I want the text field to show '$'..when users click on the text field then '$' will be gone.
...
Hi guys,
I want to select all the elements that have these two classes 'a' and 'b'.
So, only the elements that have both classes.
When I use $(".a, .b") it gives me union, but I want intersection.
...
How to use javascript or jQuery to read the color of a pixel of an image when user click on it? (of course we have the (x,y) value of this pixel by subscribing to the click event).
Thanks!
...
I've searched all over and have found possible solutions but they don't quite work how i need them to. I am really new to jQuery but I'm trying :-)
I have an iframe that sits in a Tab
( Tabs powered by jQuery)
In the third tab sits an iframe that holds a slideshow
My problem:
When I click on the third tab which houses the iframe all...
Can't figure this out for the life of me. Google is no help either. I'm sure its super easy.
...
So Basically I am trying to keep the top level categories image of a down arrow turned on while hovering over the submenu's elements. I want to do this through jQuery on a hover function however I cannot for the life of me get a selector to target the sub menu items.
Here is the code I am trying to run:
$(document).ready(function() {
...
Hi,
If I do a post from jquery like so:
$.post("Row/getRowNames", { currRow: "MyRow", offset: 3 },
function(rowNames) {
/* How do I interpret the data to
},
"json");
How do I interpret the data rowNames that's passed back from the method in the controller? I need to turn the json result into an array of s...
Hi All,
I have a table with rows basically like this.
Normal Row
Normal Row
Normal Row
Summary Row
Normal Row
Summary Row
Normal Row
Normal Row
Summary Row
So basically X "normal rows", which will always be followed by a "summary row". The summary rows display aggregates of the data in the normal rows. I calculate the aggregates at ...
I have a form that does 2 things:
Pass a first name and email address to PHP.
Dynamically add a new set of name/email fields on a click, in case the user wants to submit more than one or two sets of data.
Since I don't know exactly how many sets every user may choose to submit, I pass the data to PHP in an array (using a name followe...
I have this code snippet:
<div id="div1">
</div>
<div id="div2">
<h3>This is the content</h3>
<script type="text/javascript">
alert('This is the content');
</script>
</div>
<script type="text/javascript">
jQuery('div#div2').appendTo('div#div1');
</script>
Using this code, alert message will be displ...