Hi,
i am new to jquery. I have the form with only have 3 radio boxes, nothing else.
1. When i click on the first radio, i want txt1 and txt2 display on the form.
2. When i click on the second radio, i want txt3 display and txt1, txt2 are hide.
3. When i click on the third radio, all of them need to hide.
Can you help with this?
There are tons of example code out there related to this topic with jquery. However, they only have the html form code with the called but wha'ts about the rest of the jquery code where the function is created?
this is what i found our there, but want to know where the code to have this function?
<!---<script>
accepted $("input[type='radio']").change(function(){
if($(this).val()=="other")
{
$("#otherAnswer").show();
}
else
{
$("#otherAnswer").hide();
}
});
</script>
<form>
No <input type="radio" name="answer" checked="checked" value="no"/>
Yes<input type="radio" name="answer" value="yes"/>
Other <input type="radio" name="answer" value="other"/>
<input