- 1
How Can i set id to div tag in body script html ? Thanks you sir.
set id to div in body html. https://code.sololearn.com/W2C6Ahv48sAg/?ref=app
1 RĂ©ponse
0
Use the setAttribute()
div.setAttribute("id","idname");
set id to div in body html. https://code.sololearn.com/W2C6Ahv48sAg/?ref=app