|
Archive - read only |
uCoz Community Archives Archive Click for text to appear (auto filling of a field) |
Click for text to appear |
How can I creat, that when I click on the tekst in some field shows up text, like template?
Example: Added (2008-08-31, 10:11 Am) |
jackass,
Code <span onclick="document.getElementById('show').style.display = document.getElementById('show').style.display == '' ? 'none' : '';"> Here your text</span> Code <div id="show">Here text you want to be hidden and after click - displayed</div> Post edited by MindFreakTheMon - Sunday, 2008-08-31, 4:12 PM
|
It work...
And how can I get, that in the start that texst is hidden?
Quote Here text you want to be hidden and after click - displayed It is displayed and after click hidden Added (2008-08-31, 10:48 Am) Quote == '' ? 'none' : '';"> What 'none' do? Post edited by jackass - Sunday, 2008-08-31, 4:31 PM
|
jackass,
![]()
Code <div id="show" style="display:none;">Here text you want to be hidden and after click - displayed</div> Quote (jackass) What 'none' do? Hides the object. |
| |||
| |||