【发布时间】:2017-08-06 07:16:58
【问题描述】:
我有这个小提琴
http://jsfiddle.net/nesreen/m5TMF/763/
$("#AddansId").click(function(){
//get the parent of the div with id(Collapse+x)
// to abend the data content of the textarea beside the word
//Account Registeration at PrepBootstrap
});
我可以用按钮创建一个动态手风琴 在每个手风琴内我需要制作另一个文本区域和按钮以在同一个折叠中添加另一个文本 但我面临的问题是,即使父 id 也是动态的,我如何才能每次都获取按钮的父
【问题讨论】:
-
您的问题不清楚..能否请您逐步详细说明您面临的问题??
-
希望对您有所帮助! fiddle
标签: javascript jquery html twitter-bootstrap model-view-controller