Saturday, 28 September 2013

Form won't pop up

Form won't pop up

I put a "Jotform" form inside my script and it won't pop up. When I click
no the text (other 8b white) pops up but why isn't that the case for the
yes button? I just want my form to simply show when someone clicks yes.
Here's the JSFiddle: http://jsfiddle.net/rf8Ux/
Here's the where the problem occurs:
if (q1 == "Yes") {
document.getElementById("linkDiv").innerHTML = "<script
type=text/javascript
src=http://form.jotform.us/jsform/32217646901149 />";
} else if (q1 == "No") {
document.getElementById("linkDiv").innerHTML = "other 8b white";
}
What am I doing wrong?

No comments:

Post a Comment