Here is the code:

` $("#editTask").click(function(){ var index = $("#editId"); alert(index); taskArray[index].header = $("#editHeader").val(); });` 
  • What do you want to do? do you use the jQuery object as an array index? - Sergey Petrashko

0