i have a HTML script like the following script:
<input type="radio" id="jenis" name="jenis" value="0" checked="checked" onChange="OnLoad();">Konten Apa Saja<br/>
<input type="radio" id="jenis" name="jenis" value="1" onChange="OnLoad();">Wajah<br/>
<input type="radio" id="jenis" name="jenis" value="2" onChange="OnLoad();">Foto<br/>
<input type="radio" id="jenis" name="jenis" value="3" onChange="OnLoad();">Gambar Clip<br/>
<input type="radio" id="jenis" name="jenis" value="4" onChange="OnLoad();">Gambar Garis<br/>
and the follwing code is a javascript code to use thats code :
function get() {
for (var i=0; i < document.search.jenis.length; i++)
{
if (document.search.jenis[i].checked)
{
var jenis = document.search.jenis[i].value;
}
}
}
Post a Comment