ugh_bough
09-11-2003, 02:51 PM
Hi there,
i generate javascriptcode with php. i want to use strings as elementnames. ie
<script>
function change_open (name) {
dosument.name.style.display='';
}
</script>
<li name='thisname' onclick='change_open(this.name)'>Test</li>
<ul id='thisname' style='display:none'>
.
.
.
in this example the unsorted list is hidden at the beginning. when the list item is clicked, it should be displayed.
is it possible to use strings this waY?
thanx, ugh_bough
i generate javascriptcode with php. i want to use strings as elementnames. ie
<script>
function change_open (name) {
dosument.name.style.display='';
}
</script>
<li name='thisname' onclick='change_open(this.name)'>Test</li>
<ul id='thisname' style='display:none'>
.
.
.
in this example the unsorted list is hidden at the beginning. when the list item is clicked, it should be displayed.
is it possible to use strings this waY?
thanx, ugh_bough