Hi,
I have input elements with the following ids:
- <form:input path="id.employeeName" />
- <form:input path="custName" />
I am trying to display these fields in my edit pop up screen:
var data = DATA.results[index];
$("form#myForm :input").each(function(){
var input = $(this);
input.val(data[input.attr('id')]);
});
I am only seeing the custName value not the id.employeeName. I get undefined. I can get this working in javascript not jquery. I appreciate any suggestions.
Thanks!!!