![]() |
toggle() more or less [text]
Hello All,
I am trying to find some help on using prototype/scriptaculous toggle() Code:
<div>Code:
function showHide(id, iShow)now what im trying to do is....have the opening text (which if there is an easier way, please let me know)...when you click on 'more' it will toggle the ID to display it (simple enough), BUT....i want the word 'more' to change to 'less' any help would be appreciated. |
If you write this line
Code:
moreLess = (moreLess == "More") ? "More" : "Less";var moreLess; Code:
if(moreLess == "More"){Eric |
| All times are GMT +1. The time now is 10:33 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.