JAVASCRIPT   35
document ready function
Guest on 17th September 2023 09:37:48 PM


  1. $(document).ready(function(){
  2.   $("li").click(function(){
  3.     document.getElementById("test").innerHTML = $(this).index();
  4.   });
  5. });

Raw Paste

Login or Register to edit or fork this paste. It's free.