|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Load years into combo
Hi
am not much familiar in JS, I just want to load the 100 years into combo , I don't like to add static, Through JS i want to load the 100 years into combo, I don't want to mingle any server side coding, Simply i want to so this using JS,HTML, Example Just Want to load From 2000 to 2100 years into Combo Any great challengers there ![]() |
|
#2
|
|||
|
|||
|
Code:
<select>
<script type="text/javascript">
for (i=2000;i<=2100;i++) {
document.write("<option value=\""+i+"\">"+i+"");
}
</script>
</select>
|
|
#3
|
|||
|
|||
|
Reply
Ya , Exactly expected script,
But may i know , I view the , Viewsource, There is nothing like Quote:
Is it possible to explain, I know its loading through script, |
|
#4
|
||||
|
||||
|
view source display the code the browser use to create the output/page.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Load years into combo |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|