html how to make li clear code example Example: jquery empty ul $('input').click(function() { $('ul').empty() });