text inputs selection with jQuery

Input type text selection with jquery http://aamirshahzad.net

by Aamir Shahzad

HTML

<input type="text" value="Some test" />

JavaScript

$(document).ready(function () {
    $(":text").css({
        'background': 'green',
        'color':'#fff'
    });
});