Web Analytics Made Easy -
StatCounter put textContent right place - CodingForum

Announcement

Collapse
No announcement yet.

put textContent right place

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • put textContent right place

    Hi,

    How can I put textContent ("Lukujen pitنن olla vنlillن 8 - 16.") right place? Now the text will come under input field (see picture). The text right place will be the next input field same line.

    var label = document.getElementsByTagName("label")[0];
    var div = document.createElement("div");
    div.setAttribute ("id","tarkista");
    label.appendChild(div);
    .
    .
    .
    var div1 = document.getElementById("tarkista");
    div1.textContent = "Lukujen pitنن olla vنlillن 8 - 16.";





    br,

    Seppo

  • #2
    divs are block elements. they do not tolerate elements on their left and/or right.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

    Comment

    Working...
    X