I am trying to select the parent TAB of a REQUIRED input which failed validation and then show the "This field is Required" message for that field.
The following code successfully gets the tab object, selects the tab of the field, but I cannot seem to get the "This filed is required" message to show next to the input after enabling the tab ?
I have tried inv.prev('input').textbox('validate'); but that does not appear to work ?
function eltaben(inv){
var tab = $(inv).closest('.tabs-panels');
var tob = tab.parent('.tabs-container');
tab.children('.panel').each(function(){
var me = $(this);
if(me.find(inv).length > 0) {
tob.tabs('select',me.index());
}
})
}
var vali = me.form('validate');
if(!vali) {
var vis = $(this).find('.textbox-invalid:visible').first();
if(vis.length ==0) {
var inv = $(this).find('.textbox-invalid:hidden');
eltaben(inv);
inv.prev('input').textbox('validate');
}