You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while i 'am able to select the whole form inside a asp.net webform i'am not able to create div with input and check if it's dirty because work only if you select a form tag
for example in asp.net web form page i have
Since it is the form that Dirty Forms must attach to, you must use the one form that is on the page. The simplest way to do it with ASP.NET is just to use the form selector.
$('form').dirtyForms();
This would normally select every form, but since you only have one this is how you can select it without hard-coding the name into your JavaScript file.
As for "selecting a div within the form", it is unclear what you mean. You can ignore one of the divs by following the ignoring things documentation. But the default behavior will mark the form dirty if either of your text boxes have been changed after the page loads, and will pop up the dialog if you try to navigate away without submitting the form.
while i 'am able to select the whole form inside a asp.net webform i'am not able to create div with input and check if it's dirty because work only if you select a form tag
for example in asp.net web form page i have
with this scenario how can i select the div with id myform
The text was updated successfully, but these errors were encountered: