tags:

views:

866

answers:

2

Like < textarea >, < input > etc

+2  A: 

http://docs.jquery.com/Selectors/input. And while I don't know what you're going to use it for, http://docs.jquery.com/Ajax/serialize might be of interest as well.

eelco
Thank you for your answer!
A: 

This code will find all input, select and textarea elements and construct an object mapping element names to their values:

var form = $("#someform");
var postData = {};

form.find(':input').each(function()
{
    postData[$(this).attr('name')] = $(this).val();
});
Bill Zeller
Thank you for your help!!!