Msg#: 3556798 posted 10:02 am on Jan 25, 2008 (gmt 0)
Thanks rocknbill. unfortunately i am working on someone elses system and the way they have built iT (PHP to write XML and XLST to template) means that the same form tag is used through out and it already contains an ID tag
Msg#: 3556798 posted 8:04 pm on Jan 25, 2008 (gmt 0)
All right then.
Can you determine which form it is by index? If it's the only or first form on the page (via order in the source code), this will be 0 (zero.) If it's got two forms on the page and it's the second one, the index is 1, and so forth.
Msg#: 3556798 posted 5:42 pm on Jan 29, 2008 (gmt 0)
Hi rocknbill. sorry i took so long to reply.
There is only 1 form per page and it is always the same format. No matter what i tried i couldnt target the action attribute of the form. I even tried copying the action element, renaming it, destroying the old element, targeting the action attribute and then copying back the element - but that didnt work either.
I gave up after that and found a different way to achieve what i needed.
After thinking for a bit the only possible way that might work would be to clone the element and then rename it and then do a DOM refresh in order to get IE to not recognise this element... Dunno, its all startin to get a bit heavy at that point in order to do something simple.