Skip to content

alexgriff/ajax_exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ajax_exercise

Objectives:

  • 'Hide Books' button should empty the ul inside of the div with the class of bookshelf
  • Each book li should have a delete button that deletes the book and removes it from the ul

The only thing i added to the code was to clear out the input fields after the submit event

$.ajax({
      url: url,
      type: "POST",
      data: {title: title, author: author, page_count: pageCount}
    }).then(function(resp){
      
      // this is nice to do :)
      $('#title').val("");
      $('#author').val("");
      $('#page_count').val("");
      
    })

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published