html - How do you put value or placeholder in form:input Spring MVC -


hi know how place attribute "value","defaultvalue" or "placeholder" form:input

original code

 <form:input path="ggpath" cssstyle="width:100%"/> 

what want

 <form:input path="ggpath" cssstyle="width:100%" value="example"/> 

but if place value attribute. give me error. appreciated

use following code

<form:input path="ggpath" style="width:100%" placeholder="example"/> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -