Rifts Posted December 9, 2009 Share Posted December 9, 2009 I have a dropdown box which is populated from my database. is there anyway to have a name from the dropdown box be highlighted if something is changed in the database for that user? Quote Link to comment https://forums.phpfreaks.com/topic/184569-how-would-i-go-about-highlighting-changed-things/ Share on other sites More sharing options...
haku Posted December 10, 2009 Share Posted December 10, 2009 You can apply a background color to the option in question: HTML: <select name="select"> <option value="1" >id1</option> <option value="2" class="changed">id2</option> <option value="3" >id3</option> </select> CSS: option.changed { background-color:red; } Quote Link to comment https://forums.phpfreaks.com/topic/184569-how-would-i-go-about-highlighting-changed-things/#findComment-974441 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.