jquery remove attribute
- By Preneesh AV --
- 19-Oct-2018 --
- 81 Comments
in this case on change of input text filed
the required true attribute of dropdown is set to false.
$("#address-addressline").bind("input",function(){
if ($(this).val().length > 0){
$("#orders-orderaddressid").attr("required", false);
}
else
{
$("#orders-orderaddressid").attr("required", true);
}
});
