Jump to content
Killersites Forums

Jorge

New Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Jorge

  • Rank
    New member
  1. Thanks Another question, is there a better way?
  2. Can I please get your opinion on this piece of js code. Which way is better or correct between the two version, I know both work but I am curious if of one of the 2 is better or both or if none. This one: document.getElementById("startEd").onclick = function startEdit () { //Make the element editable var element = document.getElementById("editableElement"); element.contentEditable = true; element.focus(); } Or this one: function startEdit () { //Make the element editable var element = document.getElementById("editableElement")
×
×
  • Create New...