0

In the view I have a div with id=my_user_id, so for example:

<div id='5'></div>

There is a way to change this id for the next request? So when I reload the page I get a number choosed by me, and not my_user_id.

Thank you.

Mr McDonald
  • 453
  • 7
  • 16

1 Answers1

0

If you want to change your div'id try this one: document.getElementById("5").id = 'newId';

Gitesh Purbia
  • 1,094
  • 1
  • 12
  • 26