Ok, here is an update using the code Jörn's code:
I added another item to the xml:
<text>
<item tag="DELETEDIALOG" for="This is the text for the delete dialog
box" txt="Are you sure you want to delete this item?"/>
<item tag="LINKNAME" for="This is the text for the delete dialog box"
txt="HOME"/>
</text>
When I do the below:
$.log($('[EMAIL PROTECTED]', doc));
$.log($('[EMAIL PROTECTED]', doc));
In firebug I get:
[item]
[item]
when I mouse over these i see that it has:
text/item
text/item[2]
This tells me that it is pulling the right things (I assume) but when I add:
$.log($('[EMAIL PROTECTED]', doc).attr('for'));
$.log($('[EMAIL PROTECTED]', doc).attr('for'));
I get undefined for them both. But if I change for to whatfor, it works.
Ultimately I can stick with whatfor at the attribute, but why would that
mater?
Thanks again guys.
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/