Randomblue Randomblue - 6 months ago 36
CSS Question

jQuery UI styled text input box

jQuery UI makes buttons look nice with

$('button').button();
.

Is there an equivalent for text input boxes?

Answer

There's nothing to stop you from doing $("input").button()... I like this:

$('input:text, input:password')
  .button()
  .css({
          'font' : 'inherit',
         'color' : 'inherit',
    'text-align' : 'left',
       'outline' : 'none',
        'cursor' : 'text'
  });

A fuller example.