Hi I am trying to change the contents of a hidden input.
var temp = $("#header").val().replace("(/<\/div><div>/g","<br>");
I tried using the following replace but it does not change it.
May I know what I did wrong? I am trying to replace:
</div><div>
to
<br>
EDIT - this is my program flow
User enters input to a wysiwyg text editor which produces the output
Save the user input to database
Go to another page where the wysiwyg input is retrieved from database and save it to input type hidden
Replace the
</div><div>
to a<br>
which is then outputted to a div