Link to home
Start Free TrialLog in
Avatar of kcg-witchdoctor
kcg-witchdoctor

asked on

javascript to add id attribute that is the same as name attribute

I need a simple PHP or javascript script that parses an html page returned as a string, when it finds a name tage that doesn't have an id tag between the < > carrots.it creates an id attribute with the same name as name="objectname".  Anybody have any idea how to do this?
ASKER CERTIFIED SOLUTION
Avatar of KhoiNqq
KhoiNqq

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kcg-witchdoctor
kcg-witchdoctor

ASKER

Thank you both, i wish i knew how to give 100000 points to yuou both.