Get name of textarea or input using jQuery

Filed Under (General) by Wenbert on 28-03-2008

Tagged Under : ,

You can do this in jQuery:

  1.  
  2. $("textarea[@name=my_field_name]").val()
  3. $("input[@name=my_field_name]").val()

Comments:

2 Responses to “Get name of textarea or input using jQuery”


  1. wow, didn’t know that is possible… thanks for sharing!


  2. I am contacting you through this contact form as there was no email address available. We would be interested in purchasing advertising on your blog. Please get back to me using the email address I have entered if you would be interested in discussing this further

Leave a Reply

Subscribe to Rss Feed : Rss