Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery validate if field exists

if( $('#selector').length ) // use this if you are using id to check
{
     // it exists
}

if( $('.selector').length ) // use this if you are using class to check
{
     // it exists
}
 
PREVIOUS NEXT
Tagged: #jquery #validate #field #exists
ADD COMMENT
Topic
Name
1+7 =