Clone LI and clear cloned LI's input values

Clone LI and clear cloned LI's input values

I've been searching this forum, Google Groups, and Stack Overflow this morning but I haven't been able to quite find a simple way to clone a LI element (that contains form inputs with data,) and erase the newly created/cloned LI's form inputs.

The function I'm using at the moment looks like this:
  1. $("a#add_template_item").click(function(){
  2.     $('#cs_' + ($('#sortable li').size()-1)).clone().removeAttr("id").attr('id','cs_' + $('#sortable li').size()).appendTo('#sortable');
  3. });

(All that is doing in the code snippet is checking to see what ID to assign to the new cloned LI item...)

Has anyone been able to clear the input values of a newly-cloned item in jQuery?

Thanks for any pointers,
Andy