Question

I have created dynamic row(using javascript) in my JSP page. Now i want to use Spring Component <form:input

For spring component <form:input in HTML, i have used

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<form:input path="hello" cssClass="textbox_Blue" maxlength='10' size='30' />

now i want to know how to do it in java script.

Hopes the question is clear and informative.

Was it helpful?

Solution

Check out the html equivalent of <form:input similarly create that in your javascript. Append that code in your page using javascript. The binding is done based on name, so it will work.

Make sure that you are appending code within the <form tag.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top