参见英文答案 >
jQuery: How to get to a particular child of a parent? 5个
当我点击expandable-icons-cancel时,我想保存form-group div的子标签.
这是结构:
Long Title
功能:
jQuery('.expandable-icons-cancel').click(function() {
var parentDiv = jQuery(this).parents('div.expandable'); //-works, but how can i get upper?
// How to get 2 steps upper to form-group?
// How to get get child label text of form-group and save in var?
}