Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="text" />
- <input type="text" style="border-color:red" />
- <input type="text" style="border:1px solid #ff0000" />
- <input type="text"/>
- <style>
- input{
- border:2px solid #FF0000;
- }
- </style>
- .default{
- border: 2px solid transparent;
- }
- .new{
- border: 2px solid red;
- }
- input:active,
- input:focus {
- border: 1px solid #red
- }
- input:active,
- input:focus {
- padding: 2px solid #red /*for firefox and chrome*/
- }
- /* .ie is a class you would need to set at the html root level */
- .ie input:active,
- .ie input:focus {
- padding: 3px solid #red /* IE needs 1px extra padding*/
- }
- $("input.address_field").on('click', function(){
- $(this).css('border', '2px solid red');
- });
Add Comment
Please, Sign In to add comment