I have string like this :
<input name="my_name" id="my_id" value="my_value" class="my_class" />
I would like to find what is inside the “id”, i.e. ‘my_id’.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do not load a full DOM manipulation library if this is all you need.
If you have a string, you can turn it into a DOM element, and get the
idproperty.Or just use a regular expression…