我正在将输入字段动态添加到td
元素
$('.edit_text').live('click',function(){
$(this).html('<input type="text" value="'+$(this).text()+'" style="background:url(text_bx.gif) no-repeat bottom;display:inline;padding: 0; margin: 0;" class="editing" >');
$(this).children('input').focus();
if ($(this).attr('id')=='date'){
$(this).children('input').datepicker( "refresh");//"option", "dateFormat","yy-mm-dd");
}
});
但如果 td 有 id 日期,则 datepicker 不会出现。我在插入的输入字段上也有模糊功能,有问题吗?
$('.editing').live('blur',function(){
//did something
});