Hello,
I have a scenario:
There are three fields:
1. q3 = Radio Button with Values: A, B, C
2. q4 = Dropdown with Values: Inklusive, Exclusive
3. q5 = Single Line
I have various text which will be shown as Placeholder in q5 depending upon the values of q3 & q4, for example
if q3 = A & q4 = Inklusive
q5 should be = "Something Fancy"
if q3 = A & q4 = Exclusive
q5 should be = "Ugly something"
I tried to copy paste some of the code from answers, with my limited knowledge I came to :
$('#q4 input').change(function(){
if($('#q3 input[value="A"]:checked') && $(#q4 select).val("Inklusive")){
$("#q5 textarea").attr("placeholder", "Something Fancy");
}
else if ($('#q3 input[value="A"]:checked') && $(#q4 select).val("Exclusive")){
$("#q5 textarea").attr("placeholder", "Ugly something");
}
})
As expected, doesn't work... Please help!
Thanks in advance,
Sahil