I am having a form
where the fields need to change according to my select
.
But when I hit the reset
the select
resets back to default, but the onchange
event on the select
is not triggered. Is there anyway so that I can add that to my javascript?
I am resetting using a button with type="reset"
$('#newHistoryPart select[name="roundType"]').on('change', function (data)
{
$(".answerType").hide();
selected = $(this).find("option:selected").val();
roundTypeChange(selected);
});