[jQuery] Re: using attr() on html element

2009-08-20 Thread ak732
Try "borderStyle" instead of "border-style" and you should be okay. On Aug 19, 10:44 pm, Terry wrote: > I'm trying to "turn" the border for input fields on (or off). > > In my css I have border-style:none, and I want to turn the border back > on if the first input is empty. > > $("input[type='te

[jQuery] Re: using attr() on html element

2009-08-20 Thread sak
I may be wrong here but don't you want to use the css reference so it should be $(this).css("border-style", "inset"); there is no html attribute called "border-style", to style a html tag you use the "style" attribute like On Aug 20, 3:44 am, Terry wrote: > I'm trying to "turn" the border for