Help with Jquery updating labels after a title match

Help with Jquery updating labels after a title match

Hi guys.

I have some code below which works brilliant for title matching products from manual input:
  1. $(document).ready(function() 
  2. {

  3. $(".course").autocomplete("get_title_list.php", 
  4. {
  5. width: 260,
  6. matchContains: true,
  7. mustMatch: true,
  8. selectFirst: false
  9. });
  10. $(".course").result(function(event, data, formatted)
  11. {
  12.  $(this).next(".course_val").val(data[1]);
  13. });
  14. });
And the update part :
  1. <input type="text" name="course"  value= "Find Title In DB" class = "course"/><input type = "text" class ="course_val" />
This all works fine but when i go to copy it into a spreadsheet it doesnt copy over the values.

Is it possible to get the title match to update a table "<td></td>" and then hide the input box called : course so that I would be able to paste the information over no problem