Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

Can I add bullet point in the textarea block?

Charles_Wang
Charles_Wang BostonCommunity Member Qubie ✭

If I want to use HTML, CSS to add bullet points in the textarea block, Can I add the code below?

textarea {

display: list-item;

list-style-type: dist;

}

or Can I add bullet points by jQuery? like below

$(".survey").focus(function() {

  if(document.getElementById('survey').value === ''){

    document.getElementById('survey').value +='• ';

}

});

$(".todolist").keyup(function(event){

var keycode = (event.keyCode ? event.keyCode : event.which);

  if(keycode == '13'){

    document.getElementById('survey').value +='• ';

}

var txtval = document.getElementById('survey').value;

if(txtval.substr(txtval.length - 1) == '\n'){

document.getElementById('survey').value = txtval.substring(0,txtval.length - 1);

}

});


If I can, where I can find the textarea HTML code?

Answers

  • grahulp5
    grahulp5 IndiaCommunity Member Guru ✭✭

    yes you can..simply in question text add <ul> and then the statements tag in <li> statement1 </li>

    <li> statement 2</li></ul>