F
F
fenucss2015-10-13 17:49:38
JavaScript
fenucss, 2015-10-13 17:49:38

How to open a text field?

How to open a text field when clicking on a word, i.e. a regular string?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2015-10-13
@fenucss

Create a field, hide it (display: none, for example).
Wrap the string in some inline element like span.
Attach a handler to this element.
On click, make the field visible.

D
Denis Ineshin, 2015-10-13
@IonDen

Well, for example, through jQuery replaceWith

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question