I agree to 'onchange'. You might want to checkout 'bind'. Once you
master that, you're on your way to elemental bliss...
http://docs.jquery.com/Events/bind#typedatafn
Or even the new 'live' event.
On Feb 5, 9:10 pm, James wrote:
> Try Using the onchange event.
>
> On Feb 5, 4:06 pm, "Rick Fair
've done this with straight Javascript for years, I just thought with
> all the other cool things that have been done with jquery, there would
> be a plugin for this as well. Thanks for the help.
>
> Kevin
>
> On Feb 6, 3:52 pm, sem101 wrote:
>
> > You don't
Always give your elements id's (instead of name values) -- or at least
a class attribute, so they can be targeted. (You can target name
values, but it's a bit more work.)
Examples:
var myHiddenInput = $('#myHiddenInput').val();
var myNonHiddenText = $('#myNonHiddenText').val();
$("form#myFor
Look at the Toggle event:
http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...
--but---
You might be well suited for the jQuery UI built-in accordion...
http://ui.jquery.com/demos/accordion/
On Feb 6, 8:14 am, Solaz wrote:
You don't need jQuery for math, it's simple JavaScript. But -- you can
use jQuery to get elements of your forms
var qty = parseInt($('input#qty').val()) || 0;
var product1 = parseFloat($('input#product1').val()) || 0;
var discount = parseFloat($('input#discount').val()) || 0;
var grandtotal =
This sentence totally freaks me out...
"Create a button that's able to clone itself - and have the clones
themselves be clonable."
6 matches
Mail list logo