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
2009-01-18 10:51:20
Thank you for your answer!
2009-01-18 11:16:29
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
2009-01-18 11:04:32