I want my user to select only two values in HTML dropdown. Please can anyone suggestion how I can do this. The code I am using is mentioned below.
<select style="width: 300px;height:200px;" name="graphListBox" multiple="multiple" id="graphListBox">
<c:forEach items="${graphList}" var="graphType">
<option value="${graphType}"><c:out value="${graphType}" /></option>
</c:forEach>
</select>