How do I change the standard highlight color that is applied when you select the data from a text input field?
For example:
1.) User clicks on the text field box. 2.) The contents get highlighted. 3.) I'd like to change this color.
Here is my code:
<input type="text" value="<?php echo $url;?>" size="40" id="selecturl"/><br/><br/>
<script language="JavaScript">
jQuery(document).ready(function(){
jQuery('#selecturl').focus();
jQuery('#selecturl').select();
});
</script>
<style>
input[type=text]:focus, textarea:focus {
box-shadow: 0 0 5px rgba(81, 203, 238, 1);
border: 1px solid rgba(81, 203, 238, 1);
}
</style>
Thanks!