javascript - How to get all the form elements values using name attribute -
i trying access form elements in jsp page using name attribute. form contains text,textarea , select fields. in javascript file have these values.
$("input[name=first_name]").val()
by using can values of input type fields (for ex:text) , not , fields.
please me resolve this.i want use jquery code this.
you don't need type of element in selector:
$("[name=other_name]").val()
Comments
Post a Comment