[jQuery] Re: input color - default color

2009-08-28 Thread Paolo Chiodi
try $('#first_input').css('background-color', null) On Fri, Aug 28, 2009 at 12:23 PM, dziobaczaaabbbcccda...@gmail.com wrote: I have inputs with validationin in jquery. If data are wrong I make red background color in input: $('#first_input').css('background-color', 'red'); After click

[jQuery] Re: input color - default color

2009-08-28 Thread dziobacz
interesting - Your solution works in Firefox and in Chrome but it doesn't work in IE 8 and Opera - in these browser background color inputs is still red - hm... strange - what should I do ? On 28 Sie, 12:59, Paolo Chiodi chiod...@gmail.com wrote: try $('#first_input').css('background-color',

[jQuery] Re: input color - default color

2009-08-28 Thread rupak mandal
Hi You may try this $('#first_input').css('background-color', 'transparent'); On Fri, Aug 28, 2009 at 5:00 PM, dziobacz aaabbbcccda...@gmail.com wrote: interesting - Your solution works in Firefox and in Chrome but it doesn't work in IE 8 and Opera - in these browser background color

[jQuery] Re: input color - default color

2009-08-28 Thread dziobacz
ruspak thx but it also works wrong. But I think I have found the best solution. For example - we have a form with these fields: input type=text class=text_field id=name/ input type=text class=text_field id=surname/ input type=text class=text_field id=email/ First - we must create style class