- 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

28th Jul 2021, 3:54 AM
Malick Diagne
Malick Diagne - avatar
1 Odpowiedź
0
Use the setAttribute() div.setAttribute("id","idname");
28th Jul 2021, 4:49 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar