I have this Javascript:
var = "<form action="/issues/[[issue_id]]/create-condition/" method="post" class="r_issueform" name="testform">"
And I have this HTML on the same page:
<input type="hidden" class="issue" name="issue_name" value="20"/>
Now with Javascript I want to replace the issue_id with value of hidden textbox. Any suggestions on how to do this?
Try this jsFiddle example. Added the correct var declaration.