0
Ola would like to know the following, as I would logica to rename a paragraph directly by html, for example. I have an empty paragraph, the user clicks on the paragraph and type a word from enter and the word arrow its value in the paragraph. A system of renaming.
If I understood your question, you could open a prompt for the person to type, and what she typed you would enter in a <p> tag. Is that it? If yes, you would need to use Javascript to intercept the paragraph click, open the prompt and then assign what was typed to the tag that was clicked.
– Rodrigo Tognin
Your logic is strange, as well as clicking on an empty paragraph, if the paragraph is empty as the user will know that there is a paragraph there??
– LeAndrade
<p contentEditable = "true">teste</p>
should be the fastest way. This Trona an editable html element.– edson alves