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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s