I have the following html code in my page
<li style="display: none;" id="show_user" class="basic_link">
<a href="/admin/users/4c6a275ea326cb01f4000001?locale=en">Show
User</a>
</li>
I would like to modify the id part of the href
(4c6a275ea326cb01f4000001)
between the '/admin/users/' string and the '?locale=en' string (always
present) with the value of a variable: var id= selection[0].id;
I know that in order to get the element to be modified , I can write :
$('show_user').firstDescendant()
but then .. I don't know how to modify it ..
any help will be welcome
erwin
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.