I have following jaggery code for UI where I am fetching values from user via UI.
<%
for (i = 0; i < applicationAttributes.length; i++) {
%>
<div>
<label>data:</label>
<div>
<input type="text" id = "attribute_<%= i%>" >
</div>
</div>
<%
}
%>
when reading the values respective to each ids,
var data = $("#attribute_1").val();
But it is not returning the value, Can someone specify the proper method to assign 'id'