Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display a bullet point with this string?

Tags:

How do I display this string with a bullet point?

Below is the string:

if (!this.value || this.value.length < 5) {
    alertValidation += "\nYou have not entered a valid Question\n";
}
like image 794
user1182476 Avatar asked Feb 04 '12 23:02

user1182476


People also ask

How do I put bullet points in a string?

Split the string on "\u2022" and then use <ul> to display bullets.

How do you show bullet points?

Type* and a space before your text, and Word will make a bulleted list. To complete your list, press Enter until the bullets or numbering switch off.

How do I add bullets to text in HTML?

To create unordered list in HTML, use the <ul> tag. The unordered list starts with the <ul> tag. The list item starts with the <li> tag and will be marked as disc, square, circle, etc. The default is bullets, which is small black circles.


1 Answers

If you want to alert() it, do:

 alertValidation += "\n\u2022 You have not entered a valid Question\n";
like image 113
ori Avatar answered Oct 26 '22 08:10

ori