Append and Slide together jQuery

前端 未结 3 423
执笔经年
执笔经年 2021-02-03 23:03

I have this append method which I made to add more input boxes until there is 10 of them which will disable into making more.

i = 0;
$(\'#add-link\').click(funct         


        
3条回答
  •  鱼传尺愫
    2021-02-03 23:45

    append() returns a reference to the original selector, not what was appended. I think you are looking for this:

    $('.insert-links').append('')
    $('.insert-links').find(".new-link:last").slideDown("fast");
    

    Live demo:

    http://jsfiddle.net/V4SVt/2/

提交回复
热议问题