by @kodeazy
JQuery How to modify id value in HTML div tag?
- With the help of
attr
method we can modify the value ofid
inside anyHTML
tag. -
Below is the syntax of modifying the
id value
of aHTML
tag.$('#oldId').attr('id','newId');
attr
method we can modify the value of id
inside any HTML
tag.Below is the syntax of modifying the id value
of a HTML
tag.
$('#oldId').attr('id','newId');