I have a page with a javascript that dynamically create a controls (radio buttons, text boxes) .
on button (submit) I need to validate the values before proceeding with the event it self .
but , after hitting the button I need to cancel the event if one rule didn't obey. but the page gets refreshed and all my dynamic controls goes so I need to stop any action to a page if one of the rules failed . (save the form)
I believe there is a way such as e.preventDefault(); in javascript .
Please Advise, Many Thanks :)