|
Free Java Script Codes |
List All
|
Slide Show |
Ad Display
|
Image Effect |
Animated Image Effects
|
Form Validation |
Color Picker Tool
|
Formatting Forms |
Select All |
Dynamic Form select |
Dynamic Color |
Calendar
|
Textbox Counter |
Alphanumeric
|
Date & Time |
Stop Watch script |
Delete Repeated Values |
Pagination |
Random Generator |
Animated Text |
Cursor Position |
Window / User Info |
Security / Authenticate |
Bookmark
|
Mouse Effects
|
Title Bar |
Status Bar |
Country List
|
Free Games |
Calculators |
|
|
|
|
|
Dynamic Form Select Option
|
|
About |
|
This javascript will help you to dynamically populate one form option field while the other option field is changed. This script can be used as country, state, city selector script.
|
|
Features |
a) Javascript for dynamic event option changes.
b) You can add any number of options.
c) Values of both option fields can be modified by user.
d) Works with both IE and Mozilla.
e) Just copy the code and modify it to your requirement.
|
|
Usage |
a) To change the first "option list" change the line
var aa = new Array("state1","state2","state3");
add any thing you want instead of state1, state2 ......
b) Your changes should reflect in the next lines too.
state1 = new Array("city1","city2");
state2 = new Array("city21","city22","city23");
state3 = new Array("city31","city32","city33");
Say if you change state1 to xxxx, do the same changes in the lines below where state1 is used.
Another example
var aa = new Array("option1","option2");
option1 = new Array("list1","list2");
option2 = new Array("list21","list22","list23");
c) Here we have used form name as "sform" and select field names as "sel1" and "sel2". Don't alter the names.
|
|
License |
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
|
|
|
|