or
<input type="button" name="name" value="MakeClone " id="btnRow" />
<table> <tbody> <tr id="AssRow"> <td> <input id="titles" /> </td> </tr> </tbody> </table><script type="text/javascript">
$(functionn(){
$('#btnRow').on("click", function () {$("#AssRow").clone(true).find("input").each(function () { $(this).val('').attr('id', function (_, id) { return id + i }); }).end().appendTo("table"); i++; });
});
</script>