Good morning, I'm putting a mask on a field that formats a phone number, but you can see that the field ID is # Field_11690 because it was created by a WordPress plugin.
( function( $ ) {
// jQuery MeioMask.
$( '#field_11690' ).setMask( '(99) 9999-99999' ).ready( function( event ) {
var target, phone, element;
target = ( event.currentTarget ) ? event.currentTarget : event.srcElement;
if ( 'undefined' === typeof type ) {
return;
}
phone = target.value.replace( /\D/g, '' );
element = $( target );
element.unsetMask();
if ( 10 < phone.length ) {
element.setMask( '(99) 99999-9999' );
} else {
element.setMask( '(99) 9999-99999' );
}
});
And for this reason I do not know if production would continue the same ID, is there any other way for me to be able to declare the ID number of this field, or to pick up some Upper element?