View Single Post
Eski 14/02/2005, 18:48   #6 (permalink)
syperusta
...
 
syperusta Adlı Üyenin Profil Grafiği
 
Üyelik Tarihi: 08/2004
Yer: İstanbul - Fatih
Mesaj: 259
Varsayılan

Boyle Bir ornek bir işine yarar umarım.
Alıntı:
<style>
.style1{color:red;}
.style2{color:yellow;}
</style>
<script>

function sec(MySelect, MyTextbox)
{
if(MySelect.selectedIndex == 0)
{
MyTextbox.disabled = true;
MyTextbox.className = "style1";
}
if(MySelect.selectedIndex == 1)
{
MyTextbox.disabled = false;
MyTextbox.className = "style2";
}
}
</script>
<body>
<select onchange="sec(this,Text1)">
<option>Active</option>
<option>DeActive</option>
</select>
<input id="Text1" value="OOOOOOOOO">
</body>
syperusta hatta değil   Alıntı Yaparak Yanıtla