>
> An invalid form control with name='' is not focusable
ager aapka input element hidden ho or ussme required attribute use ker
rkhha hai to jab ye error aata hai.
to ab humare pas 2 options bachte hai.
अगर आपका input element hidden हो और उसमें required attribute use कर रखा है
तो जब ये error आता है.
तो अब हमारे पास २ options बचते है.
1. या तो input को hidden मत रखो अगर "required" used करना है . या फिर उस
input element से required remove कर दो.
Ex (<input type="text" style="display: block" required> || or ||
<input type="hidden/anytype" style="display:none"> )
2. [solution] : >> पहले "required" used मत करो. on display block पर
"required" attribute add कर दो. | simple
<button>show</button>
<input type="text" style="display: none">
<script>
$("button").click(function(){
#("input").css("display","block").attr("required");
})
</script>
Note: <form name="myform" novalidate > this is wrong method. sidhi si baat
hai ager hum form me "novalidate" attribute ko lga denge to form validate
hi nahi hoga. or ager form validate kerna hi nahi chahenge to input me
"required" hi kyu denge. or "required" attribute hi nahi hoga to error hi
nahi aayega.
think logically bro.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.