I have a textbox.When I click this I want to change text color style with javsacript.Before this I made succesfully this.When someone click the textbox textbox clear inner when blur textbox become old version.This code works for me now
<input id="kullanici_adi_text" type="text" name="kullanici_adi_text" value="Kullanıcı İsmini Giriniz..." onfocus="if(this.value=='Kullanıcı İsmini Giriniz...') {this.value='';} onblur="if(this.value==''){this.value='Kullanıcı İsmini Giriniz...'}"/>
But I want to change text color also and textbox border size when someone focus at this.The code is not working
<input id="kullanici_adi_text" type="text" name="kullanici_adi_text" value="Kullanıcı İsmini Giriniz..." onfocus="if(this.value=='Kullanıcı İsmini Giriniz...') {this.value=''; document.getElementById('kullanici_adi_text').style.color = 'blue';}" onblur="if(this.value==''){this.value='Kullanıcı İsmini Giriniz...'; document.getElementById('kullanici_adi_text').style.color = #fff; }"/>
document.getElementById('kullanici_adi_text').style.color = #fff;But it should be like this:document.getElementById('kullanici_adi_text').style.color = '#fff';