Guest User

Untitled

a guest
Feb 13th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $(document).ready(function(){
  2. $("#button").click(function(){
  3. $("ul").append("<li>" + $("#input_field_value").val());
  4. });
  5. $("ul").on("click", "li", function(e){
  6. $(this).remove();
  7. });
  8. });
  9.  
  10. $(document).ready(function(){
  11. $("#button").click(function(){
  12. var inputvalue = $("#input_field_value").val();
  13. var item = $("<li>" + inputvalue);
  14. $("ul").append(item).hide().fadeIn(1000);
  15. });
  16. $("ul").on("click", "li", function(e){
  17. $(this).remove().hide().fadeOut(1000);
  18. });
  19. });
Add Comment
Please, Sign In to add comment