Results 1 to 2 of 2
Thread: select HTML
Hybrid View
-
12th June 2009 11:53 #1
select HTML
:
1 : 8, 9, 10, 11, 12
, 8, 8, 8, 8 9/10/11/12. , ( )
. !
PHP .
-
12th June 2009 12:07 #2
javascript .
<select name="sel1" id="sel1" onchange="sel1_changed">
...
</select>
-, head ,
function sel1_changed() {
var sel1_value = document.getElementById("sel1").value;
// , , , -.
}
-
function emptySelectOptions(lst) {
var el = document.getElementById(lst);
for (i = el.length-1; i >= 0; i--) {
el.options[i] = null;
}
}
function add_select_option(selectid, stext, svalue) {
var o = document.getElementById(selectid);
var sellen = o.options.length;
var newOption = new Option(stext, svalue);
var saveInd = o.selectedIndex;
o.options[sellen] = newOption;
o.selectedIndex = saveInd;
}
, 2-3 , .
onchange=".." event handler window.location.href = "stranica.html"




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in