I have text box (telephone number) which is coming under the div tag not coming under the form tag. I have to validate this text box using RegEx pattern. If the the pattern is not matched I should not allow the users to save the screen.
I thought of using jquery validator
$.validator.addMethod
$('#form').validate
But the problem is this text box doesn't comes under form tag. What are the other options I can choose?