On 2006.10.14, Miel Soeterbroek <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED] | 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)
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/