I have to check and uncheck the checkbox along with it, I need to have another action should be done like when I check the textbox should come, and when uncheck that textbox should be gone. For this I have code, but for first time it is working and without reloading the page again Im opening that and checking the checkbox at that time it is not working:
$('#feescheduledetail-beyond_drive_time').click(function() {
if(this.checked){
$('.field-feescheduledetail-drive_time').show();
}else{
$('.field-feescheduledetail-drive_time').hide();
}
});