|
Re: attach a click event to everything but one TR element...??: msg#01238lang.javascript.jquery
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> |
|---|---|---|
| Previous by Date: | attach a click event to everything but one TR element...??, Miel Soeterbroek |
|---|---|
| Next by Date: | Re: attach a click event to everything but one TR element...??, Jörn Zaefferer |
| Previous by Thread: | attach a click event to everything but one TR element...??, Miel Soeterbroek |
| Next by Thread: | Re: attach a click event to everything but one TRelement...??, Michael Geary |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |