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?
Page 1 / 1
yes you can..simply in question text add
- and then the statements tag in
- statement1
- statement 2
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.