I have table which is clickable.When user click one record I want to call java script function and fill the form using selected values. This is my code and I can't understand what is going wrong.Please help me..
Code:
<script language="javascript">
function fillForm(){
document.getElementById('fullname').value=searchlist.getFullName();
}
</script>
....
<input type="text" name="fullname">
....
out.println("<tr><td><a href='#' onclick='fillForm();'>" + searchlist.getFullName() + "</a></td>");
Comment