Technology Software

How to Create a List With Colors in JSP

    • 1). Create a JSP page in the IDE. Here is an example:

      <%@page contentType="text/html" pageEncoding="UTF-8"%>

      <!DOCTYPE html>

      <html><head></head><body></body> </html>.

    • 2). Add a form to the JSP page:

      <form method="POST"> </form>.

    • 3). Use the "select" tag with "multiple" attribute and add a list to the form:

      <select name="colorList" multiple>

      </select>.

    • 4). Use the "option" tag with "style" attribute to add colored choices to the list:

      <select name="colorList" multiple>

      <option value="red" style="color:red;"> Red </option>

      <option value="blue" style="color:blue;"> Blue </option>

      <option value="black" style="color:black;"> Black </option>

      </select>.

Related posts "Technology : Software"

Perform Better by Updating ATI 3200 Drivers

Software

Encrypt Files & Folders Easily With Fast File Encryption Software

Software

What Makes the Best Web-Based CRM For Small Business?

Software

Building A Personal Brand

Software

Speed Up Recruiting Process And Increase Productivity By 80

Software

The Advantages Of Using A Web-Based CRM System

Software

Virus Removal - Clean- Up Your System!

Software

How to Create a Relational Database

Software

How to Move Text in Google Docs

Software

Leave a Comment