我有和输入像<label><input type="checkbox" name="controls[]" value="1347438434" />50504762b6102</label>
,我需要得到50504762b6102。获取标签之间的内容
这里全输入:
<label><input type="checkbox" name="controls[]" value="1347438434" />50504762b6102</label>
<label><input type="checkbox" name="controls[]" value="1347438435" />50504762b61d9</label>
<label><input type="checkbox" name="controls[]" value="1347438436" />50504762b62af</label>
<label><input type="checkbox" name="controls[]" value="1347438437" />50504762b6385</label>
<label><input type="checkbox" name="controls[]" value="1347438436" />50504762b6466</label>
我allso有一个选定阵列selected_ids
至极存储值,例如1347438434,1347438436,1347438436。
所以我试图得到这样的内容:
$.each(selected_cameras_ids, function(key, value){
console.log($('input[value="'+value+'"]').nextUntil('label'));
});
但它返回空对象。哪里不对?
正如我所说的 - 我需要文本只选后输入。 –