Yes I did. Strangely enough, what I initially wrote worked in a simply HTML page without much else going on. I may have to parse thru the page that I'm working on to find if there is some sort of conflict.
Thanks! On Feb 22, 1:37 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Have you tried $(...).attr( 'checked', true ) ? > > Karl Rudd > > On Fri, Feb 22, 2008 at 9:56 AM, Joe <[EMAIL PROTECTED]> wrote: > > > Very simply, I want this function to attach the attribute > > checked=checked to the input with the id=ext[agree]Y. > > > The following code does not do this and I'm not sure why... > > > $("ext\\[agree\\]Y").attr("checked", "checked"); > > > Any help or ideas is greatly appreciated. Other ways of doing this > > would be great as well. I just want to add this upon form submission. > > > Thanks.