Can I add bullet point in the textarea block? | XM Community
Question

Can I add bullet point in the textarea block?

  • 26 July 2021
  • 1 reply
  • 365 views

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?


1 reply

Userlevel 4
Badge +13

yes you can..simply in question text add

    and then the statements tag in
  • statement1

  • statement 2

Leave a Reply