[jQuery] Re: Image.css("display") not working

2008-12-10 Thread donb
Now I understand you. 'id' was in so many places I thought you were confused about how to use them. After rereading, I see you refer to as the tag, did you really mean that or did you use in your html? is not the proper HTML tag name, it is On Dec 9, 11:24 pm, JQueryProgrammer <[EMAIL PRO

[jQuery] Re: Image.css("display") not working

2008-12-09 Thread JQueryProgrammer
Well I think you did not understand my quest correctly. As I said I cannot use the id for selector as my id is getting runtime generated. So i am using a custom attribute "myimgid" to select the element. I tried to use event.preventDefault too. but still its firing the original attached event. Any

[jQuery] Re: Image.css("display") not working

2008-12-09 Thread donb
I don't think you're really understanding the selector syntax. The 'id' is unique (or is supposed to be) and starts with a '#' in a selector, and the css syntax uses a name and value pair to set the attribute. So: $("#myimage).css('display", "inline"); // or "block" or try this alternative:

[jQuery] Re: Image.css("display") not working

2008-12-09 Thread donb
I don't think you're not really understanding the selector syntax. The 'id' is unique (or is supposed to be) and starts with a '#', and the css syntax uses a name and value pair to set the attribute. So: $("#myimage).css('display", "inline"); // or "block" or try this alternative: $("#myimage