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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -