I have custom list with a field type of radio buttons with 4 choices. I want to be able to show a box on right hand side when each radio button is checked .How do i do that? So far i was able to target id of the input field
$(document).ready(function()
{
var x= document.getElementById('Site_x0020_Type_084a7e58-b428-4e43-98b6-2a7d10bc8941_$RadioButtonChoiceField0');
if(x.checked=true)
{
alert("done");
$(".ms-RadioText").append('<p>Test description</p>');
}
});
</script>
This Script adds the paragraph under the choice, but in all choices. I think that is because i am targetting the class which all of those elements share.
What do i do to display the box on right when choice is selected.
Thank You