0

私の本当の望みは、JQM の選択可能なツリーを作成することです (各要素に 3 つの値を使用)。ネストされた折りたたみ可能な分割でやろうとしましたが、これはうまくいきます。しかし、折りたたみ可能な各バーに 3 つのラジオを追加しようとすると、イベントが適切に発生しません。

折りたたみ/展開イベントは、ラジオのクリック イベントをフックすると思います。ラジオをクリックすると、折りたたみ可能なものが展開され、ラジオがチェックされなくなります。

<div data-role="collapsible" data-theme="b" data-content-theme="d" id="accordion1">
<h3>60
<fieldset data-role="controlgroup" data-type="horizontal" data-mini="true" >
    <input type="radio" name="selcrit-CLP-60" id="selcrit-CLP-60-asign" value="60-asign">
    <label for="selcrit-CLP-60-asign">Asign</label>
    <input type="radio" name="selcrit-CLP-60" id="selcrit-CLP-60-omit" value="60-omit">
    <label for="selcrit-CLP-60-omit">Omit</label>
    <input type="radio" name="selcrit-CLP-60" id="selcrit-CLP-60-nothing" value="60-nothing">
    <label for="selcrit-CLP-60-nothing">Nothing</label>
</fieldset>                                                         
</h3>                               
<div stylee="margin: 0 10px;">
    Content for 60
</div>

これが例のjsfiddleです:http://jsfiddle.net/Hz8Ef/

何か案が?他の方法でできますか?

4

1 に答える 1