javascript toggle?
Posted
by
MagentoM
on Stack Overflow
See other posts from Stack Overflow
or by MagentoM
Published on 2010-12-23T10:46:36Z
Indexed on
2010/12/23
10:54 UTC
Read the original article
Hit count: 130
JavaScript
I have written this javascript
<script type="text/javascript">
function toggle(user_id) {
e=document.getElementById('toggleUserinfo_'+user_id);
a=document.getElementById('displayUserinfo_'+user_id);
if (e.style.display=='block') {
e.style.display='none'; a.innerHTML='show';
} else {
e.style.display='block'; a.innerHTML='hide';
}
}
</script>
but its working fine on one page not working on other. The same file is used on both, any ideas?
© Stack Overflow or respective owner