I have 4 check box when i select anyone of the check box need to display the respective check box and text box.
input type="checkbox" id="acheck[]" value='name'
input type="textbox" id="productfield" value=' '
jquery Code:
$(document).ready(function() {
$("#productfield").css("display","none");
$("#acheck").click(function(){
if ($("#acheck").is(":checked"))
{
$("#productfield").fadeIn("slow");
}
else
{
$("#productfield").fadeOut("slow");
}
});
});