« Return to the main article
Jake, I found that I needed to replace this code from the article:
@If(TestField=""; "class=\"RequiredField\" "; "") + "onChange=\"this.className (this.value!=\'\') = \'ValidField\' : \'RequiredField\'\"
With this code for it to work:
@If(TestField=""; "class=\"RequiredField\" "; "") + "onChange=\"this.className = (this.value!=\'\') ? \'ValidField\' : \'RequiredField\'\";"
Thanks for this, this is much cleaner than having little red balls or asterisks etc.. I especially like having them in the field!
Nice work once again...
Jake, I found that I needed to replace this code from the article:
@If(TestField=""; "class=\"RequiredField\" "; "") + "onChange=\"this.className (this.value!=\'\') = \'ValidField\' : \'RequiredField\'\"
With this code for it to work:
@If(TestField=""; "class=\"RequiredField\" "; "") + "onChange=\"this.className = (this.value!=\'\') ? \'ValidField\' : \'RequiredField\'\";"
Thanks for this, this is much cleaner than having little red balls or asterisks etc.. I especially like having them in the field!
Nice work once again...