Hey guys,
I have a form, that needs some JS help.
I need a script that does two things:
1.) makes sure that at least one of 'keyword1' OR 'keyword_phrase'
are not blank
2.) It somebody chooses a time period from the drop-down, that the
radio button for 'timeperiod' is selected automatically.
C
On Thursday 27 May 2004 16:36 pm, Robert Orlini wrote:
> The line: if(charVal < "0" || charVal > "9" && charVal != "." && charVal !=
> ",") still prevents a comma and period.
You know JS supports regular expressions, right ?
This is an excellent place to use one, something like
\d[,.]\d
--
Tom C
At 11:36 AM 5/27/2004, you wrote:
Check out www.yaromat.com
This dude's got some cool form validation extensions for DW that use _javascript_.
>I have a function to make sure a user enters a number. How can I include a number and a comma and period if a user wants to enter a price such as: 9.90?
I have a function to make sure a user enters a number. How can I include a number and a comma and period if a user wants to enter a price such as: 9.90?
The line: if(charVal < "0" || charVal > "9" && charVal != "." && charVal != ",") still prevents a comma and period.
function isNumber2(inputStr
4 matches
Mail list logo