Skip to content

Commit 300af64

Browse files
committed
Changed help text classname var logic to remove special characters from
element name.
1 parent 885f1e6 commit 300af64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

form-validator/jquery.form-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
// Add help text listeners
5757
this.find('textarea,input').each(function() {
5858
var $element = $(this),
59-
className = 'jquery_form_help_' + $element.attr('name'),
59+
className = 'jquery_form_help_' + $element.attr('name').replace( /(:|\.|\[|\])/g, "" ),
6060
help = $element.attr(attrName);
6161

6262
if(help) {

0 commit comments

Comments
 (0)