Web Analytics Made Easy -
StatCounter Adding html element to a textbox - CodingForum

Announcement

Collapse
No announcement yet.

Adding html element to a textbox

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

  • Adding html element to a textbox

    Trying to add the text "• " to a text area, but it will just print the symbol. Is there a way you can print the string itself?
    Code:
    function add(myValue) {
    //IE support
    if (document.selection) {
    desc.focus();
    sel = document.selection.createRange();
    sel.text = myValue;
    }
    Code:
    ...onclick="add('• ')"

  • #2
    Code:
    add('• ')

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎