I'm trying to figure out how I can make my form popup when someone hits yes. How do I incorporate this...?
Here's the JSFiddle: http://jsfiddle.net/VqqWW/
Here's the form:
<script type="text/javascript" src="http://form.jotform.us/jsform/32217646901149"></script>
I've tried putting,
if (q1 == "Yes") {
document.getElementById("linkDiv").innerHTML = "<script type="text/javascript" src="http://form.jotform.us/jsform/32217646901149" />";
}
That doesn't seem to work and I've also tried putting the code somewhere else in the head and linking it to that script but I'm not sure what's wrong.