Jquery — Pull Data From Form Input Field

I’ve had a few problems with jquery where the resources I come across on Google are a little old or something.

My version is 1.2.6

The two issues I had were: passing onComplete parameters to the built in slideUp, slideDown functions & getting data from a form input field.

For slideUp, slideDown, a visit to the docs helped in that you no longer specify onComplete at all.

For grabbing data from a form field, a ton of random searches revealed it is $(“mydiv”).val();

Its .val()

I had seen examples with fieldValue(), and value but neither worked. Here it is!

Leave a Comment