Is it possible to insert an id into a div using prototype/javascript?
Basically:
<div> Hello </div>
should become:
<div id="myId"> Hello </div>
Thanks!
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.
Yes, but without more code it’s going to be tough to do because you have no way of identifying that
<div>as it currently is coded. If it followed a<div>with and ID ofsomedivthen you could do: