Demo for remove/Add required for all text boxes in a page
txt1
txt2
txt3
Form Loaded
Submit
This add will close in 5 Seconds