Wednesday, November 6, 2013

update an HTML control by name in jQuery

$("[name='" + foo + "']").val(bar);

No comments:

Post a Comment