im trying to make something where theres a + “some text”
and when you click on it, the + becomes a minus(but the text stays) and a block of more text and stuff appears
then, when the – is clicked, i want it to restore its former propertis(aka “+ ‘some text'”)
this would simulate an expanding tree element-like thingy
i tried to use a series of javascripts such as
<script type=”text/javascript”>
function show(txt) {
obj = document.getElementById(txt);
obj.style.display == “block” ? obj.style.display = “none” : obj.style.display = “block”; // {
}
</script>
and using different combinations of em together onClick, but it just aint workin…
any suggestions?