要素の子にはほとんど問題がありません。JavaScriptで要素の子を指す方法
HERESにいくつかの私の質問を説明するためのコード:
function check(element){
// I want to get custom attribute from element children.
// Children elements are always radio buttons
var temp = element. ?? .attr('temp');
return temp;
}
// element variable is the whole div here
<div id = "test">
<table>
<tr>
<td> <input type="radio" temp="somethinghere"/></td>
</tr>
</table>
</div>
ホープ誰かが...でも、よりよい解決策をアイデアを持っていますか。
複数の子供がいる場合はどうしますか? – lonesomeday