Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete div based on select

$('#record_nav ul li').on('click', function(e){
      $('#record_nav ul li.selected').removeClass('selected');
      $(this).addClass('selected');
      $('.content').hide();
      var id = $(this).data('target');
      $(id).show();
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #div #based #select
ADD COMMENT
Topic
Name
5+6 =