daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top