Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2010
    Location
    Halifax - UK
    Posts
    22
    Thanks
    6
    Thanked 0 Times in 0 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
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    Code:
    add('• ')

  • Users who have thanked devnull69 for this post:

    mat3000000 (08-25-2011)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •