This Will Keep Your Input Elements Safe.
- jQuery 3.2.1+
- First, make sure you are using valid DOCTYPE
- Include nessesary JS files
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/InputGurd.js" ></script>
- If You Delete A Protected Input Element, Page Will Refresh
- Non Unique Id's Are Not Allowed
- I Removed Attribute_Lock From These Attributes
- Class
- Style
$('#login').InputGurd();
<input NoGurd ... >
<input nt-placeholder="Password" ... >
- 'unique-' Attribute Will Be Hide After First Run
<input unique-ng-model ng-model="test" ... >
<input InputGurd ... >
InputGurd.js was created by Thanura Nadun.