I have a field in my form which accepts only numbers and I am validating in the below function.
In the function I want to activate the dialog only when the user enter numbers only (no letters). When characters are entered it shold show an error.
$('#submit').click(function(e){
$("#form").validationEngine({
inlineValidation: false,
failure : function() {
$('input[class*=validate]').each(function(idx, item) {
if ($.validationEngine.loadValidation('#'+item.id)) {
$('#'+item.id).addClass('TextBoxError');
}
});
}
});
$("#loader").dialog();
$("#loader").dialog('open');
$('#loader').append('</br><img src="/images/abc.gif" border="0" align="middle" hspace="20" vspace="5"/>Searching.. Please wait.');
});