tags:

views:

5

answers:

0

Hello:

I have a form and I need the user to input a number between 0 and 18. The idea is, when you put 18, the form warns you that you have to put also an additional number (from 01, 02, 03...98, 99, 00, 00 being 100).

Let's say I put in 17. Nothing happens, it's all good. But when I put 18, the text field content must change to "18 / --". I can't do it for the life of me, as I'm not that familiar with javscript.

This is what I'm trying:

if (FieldValue = 18) { event.rc = false FieldValue = "18 / " }

What am I doing wrong?