I have a form which is rendered by using html string from api response, jQuery is only able to bind element which are ready when page is loaded, in order to bind on dynamic tag, it should use code like
$(document).on(EVENT_NAME, element, function(){})
However, reset is not an event, so can't bind the reset function.
I have tried to bind reset function to a click event, and trigger click by
$('from').trigger('click')
Doesn't work
So how can I reset value for dynamically generated form