Js Conditional response to form submission

Hi all.


I'm trying to use jQuery to append some text to a div based on responses to an option list in a form submission.

This is my code - which works offline when I manually add a value to the variable, so there's evidently something wrong with how I'm assigning the variable using the Matrix keyword.



Any suggestions as to what I'm doing wrong would be much appreciated :slight_smile:



Cheers

Miriam


    
    
<div class="thankYou"><p>This is where stuff should go</p>.</div>

On your response page, have you looked at the code to see what is actually getting printed for %response_123456_q6%? I can't see why you would have any issues.


Are you using Firebug?

[quote]
On your response page, have you looked at the code to see what is actually getting printed for %response_123456_q6%? I can't see why you would have any issues.



Are you using Firebug?

[/quote]



Yeah, I'm using firebug - I can see the value I selected for %response_123456_q6% when I Inspect Element.



This is on the Thank You page btw… which may have some implication, but shouldn't really. Yeah I was stumped, I can't see anything obvious wrong, but nothing gets printed although it works in a static, offline version.



thanks!

Miriam