Search code examples
jspformshtml-input

How can i prevent of displaying the previous data in html-input?


Hi I'm a Newbie in the field of HTML and jsp. as of now i was able to create a questioner website that connect to the database. but i have a problem when i try to review my questioner, the previous data are keep displaying when ever i type the first letter of my answer..

<input style="width: 100%" type="text" name="<%=rs.getString("number")%>-<%=i%>" value=""/>

how can i prevent this? any answer is appreciated. thanks in advance. I'm sorry in my english..


Solution

  • You can set the autocomplete property on your HTML input tags:

    <input style="width: 100%" type="text" name="<%=rs.getString("number")%>-<%=i%>" value="" autocomplete="off">