logo

New Response

« Return to the main article

You are replying to:

  1. 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...

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: