$("#test2").click(function(){ var input=$('<input/>'); $("#test1").append(input); laydate.render({ elem:_input[0] });});