Forum Discussion
phani
11 years agoAdvisor
Hi,
The following jquery code might fullfill your needs.
$('.lia-button-Submit-action').bind('click', function(e) {
/* perform your validation here */
var subject = $(".lia-subject");
if(subject.value.match(/* characters to check */))
{
e.preventDefault();
alert(/* alert user for wrong characters */)
}else {
return true;
}
};
I have given example to check subject after user click Post button.
Related Content
- 11 years ago
- 10 years ago
- 14 years ago
- 12 years ago
- 11 years ago