clear all li from ul code example Example: jquery empty ul $('input').click(function() { $('ul').empty() });