Page 1 of 11
Archive - read only
uCoz Community » Archives » Archive » Click for text to appear (auto filling of a field)
Click for text to appear
jackass
Posts: 278
Reputation: 10

Message # 1 | 4:11 PM
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)
---------------------------------------------
But text shows up where I want and what I want biggrin
Hope someone understand me tongue


Support forum
MindFreakTheMon
Posts: 4
Reputation: 3

Message # 2 | 4:12 PM
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
jackass
Posts: 278
Reputation: 10

Message # 3 | 4:14 PM
Thanks man surprised
I'll try it smile

Support forum
Post edited by jackass - Sunday, 2008-08-31, 4:15 PM
jackass
Posts: 278
Reputation: 10

Message # 4 | 4:48 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 biggrin

Added (2008-08-31, 10:48 Am)
---------------------------------------------

Quote
== '' ? 'none' : '';">

What 'none' do?

Support forum
Post edited by jackass - Sunday, 2008-08-31, 4:31 PM
MindFreakTheMon
Posts: 4
Reputation: 3

Message # 5 | 5:51 PM
jackass, smile add style="display:none;" to div

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.
jackass
Posts: 278
Reputation: 10

Message # 6 | 6:23 PM
Thanks cool
Support forum
uCoz Community » Archives » Archive » Click for text to appear (auto filling of a field)
Page 1 of 11
Search: