vijk2001
08-12-2002, 04:46 PM
Hi all..
Im new to java script..So some qusetions.
I have a HTML file which is actually a user entry frm with 20-25 fields in it ..some text boxes and some drop downs etc but with one submit button at the end.
Two of my first fields are Link Name and Link Type.(both text edit fields).
These are declared as regular fields inside my HTML code...
My requirement is
If LinkName >=4 chars then Linkcode should automatically be the first 4 chars.
If LinkName < 4 chars then LinkCode should be LinkName PLUS appended O after it.
So i want LinkCode to be automatically ,dynamically populated.
How to do this is .JS and after i have a .JS file WHERE DO I EMBED IT IN HTML.....would it be in top of the HTML page or would it be where fields are declared....
PLS HELP...???
THANKS A LOT IN ADVANCE.........
Im new to java script..So some qusetions.
I have a HTML file which is actually a user entry frm with 20-25 fields in it ..some text boxes and some drop downs etc but with one submit button at the end.
Two of my first fields are Link Name and Link Type.(both text edit fields).
These are declared as regular fields inside my HTML code...
My requirement is
If LinkName >=4 chars then Linkcode should automatically be the first 4 chars.
If LinkName < 4 chars then LinkCode should be LinkName PLUS appended O after it.
So i want LinkCode to be automatically ,dynamically populated.
How to do this is .JS and after i have a .JS file WHERE DO I EMBED IT IN HTML.....would it be in top of the HTML page or would it be where fields are declared....
PLS HELP...???
THANKS A LOT IN ADVANCE.........