View Full Version : textbox trong asp.net
minh dang lam wweb bang asp.net, minh muon moi khi nhap du lieu cho textbox nao thi mau nen của nó thay doi thi phai lam the nao. ban nao biet chi minh voi. cam on
khanhloc2011
03-06-2009, 16:42
Dùng javascript đấy bạn
<input type="text" onfocus="this.style.backgroundColor = 'Yellow';" onblur="this.style.backgroundColor = 'White'" />
onfocus: khi textbox được focus
onblur: khi textbox mất focus
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.