[jQuery] Re: Best action to use for selects?

2009-02-06 Thread sem101
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

[jQuery] Re: How do I add/subtract currency with jquery?

2009-02-06 Thread sem101
'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

[jQuery] Re: Newb question about accessing a form's inputs

2009-02-06 Thread sem101
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

[jQuery] Re: Modify and accordian to only open and close when clicked

2009-02-06 Thread sem101
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:

[jQuery] Re: How do I add/subtract currency with jquery?

2009-02-06 Thread sem101
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 =

[jQuery] clone()

2009-01-25 Thread sem101
This sentence totally freaks me out... "Create a button that's able to clone itself - and have the clones themselves be clonable."