javascript - How to add attribute data-val-required if it is removed dynamically using jquery -


i want remove attribute on condition used

$("#tab-1").removeattr("data-val-required"); 

but on conditions want make required again have used doesnt work

$("#tab-1").rules("add", "required") 


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -