Friday, 15 April 2011

javascript - Using AJAX to remove an item without refreshing the page -


I am creating a to do app and I am trying to delete an item without rendering a new page I am Below is the code for the list of codes.

  & lt; Ul id = "unordered_list" & gt; & Lt; Div class = "to_do_list" & gt; & Lt;% @ list.each_with_index | List, i | & Gt%; & Lt; Li data-index = "& lt;% = i% & gt;" & Gt; & Lt;% = link_to list.title, '#'% & gt; & Lt; Ol id = "list_items_ 

No comments:

Post a Comment