Any ideas how I would go about writing a javascript method to insert an attribute to a tag
eg. I have
<input id='in1' value='Submit' type='submit'/>
and I want to insert an attribute name
<input id='in1' name='submit_content' value='Submit' type='submit'/>
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…