Ashish Agrawal schrieb: > First, Thanks for such a great library. It damn good and fast - and most > of all life saver for new bees like me. > > Recently I fall in trouble. I had an element in my HTML that may > contains blank space in its ID. The thing is I am having one asp.net > <http://asp.net> based portal system where IDs are given by user on > runtime that may contain spaces. Here if I use plain $("#" + ElementId) > things will not work because ElementId may have "blank space" that means > for jQuery engine those are 2 items passed for search. > > Right now I have fixed it using $(document.getElementById(ElementId)) > but I am really not feeling comfortable with it. Is there any other > possible solution to resolve the issue? > > Thanks, > Ashish Agrawal
Element ids must not have white space in it: http://www.w3.org/TR/html401/types.html#type-name Scripting on top of an invalid HTML document won't make your life easier (obviously). I'd try to replace spaces given by the user to "_" in the backend. -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/