In my JavaScript function sometimes $(args._postBackElement).valid() throws error because it is not a valid input element. Is there any way to check whether .valid() can be called for that element?
In my JavaScript function sometimes $(args._postBackElement).valid() throws error because it is not a valid
Share
You could do –
to see if the element existed, or –
to see if it’s an input element.