Jump to content

Jquery append to value.


PhilipK

Recommended Posts

Hello I'm creating a javascript based survey which shows different answers based on the person's answers.

 

I have working script for showing the answer based on input.

 

$(".yes").click(function () { $(this).parent().next("p").show("fast"); });
$(".no").click(function () { $(this).parent().next("p").next("p").show("fast"); });

 

I need to edit this so ...

 

$(this).parent().next("p")

 

is appended to the end of a new variable called Message.

 

 

Any ideas on how to approach this?

Link to comment
https://forums.phpfreaks.com/topic/240642-jquery-append-to-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.