logo       

Re: attach a click event to everything but one TR element...??: msg#01238

lang.javascript.jquery

Subject: Re: attach a click event to everything but one TR element...??

On 2006.10.14, Miel Soeterbroek <Miel@xxxxxxxxxxxxxxx> wrote:
> And finally, one more thing:
> Can the CSS/XPath expression be dynamic, ie:
>
> function fillEditField(fieldname,value) {
> var fieldIdAttr = 'edit_' + fieldname;
> $("input#"+fieldIdAttr).val(value);
> }

Don't use underscores in element IDs. It's not a valid character, and
some browsers (like, MSIE) will not do what you want if you use it.

http://devedge-temp.mozilla.org/viewsource/2001/css-underscores/

Use hyphens, if you insist on using a visual separator.

-- Dossy

--
Dossy Shiobara | dossy@xxxxxxxxxxxx | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise