0

ラジオ ボタンを使用して動的なリストビューを作成する必要があります。

以下のような動的リストビューを作成できます

HTML

<div data-role="page" id="storedlist" >
    <div data-role="header" >
        <h1>Dynamic listview</h1>
        <a href="#"/></a>

    </div>
    <div data-role="content">
        <ul id="storedList">
        </ul>
    </div>
</div>

私の.jsファイルでは、以下のようにリスト要素をulに追加します

JS

$('#storedList').append('<li ><a href="#">'+row["nname"]+'</a></li>');

上記により、動的リストビューが取得されます。

動的リストビューにラジオ ボタンを追加するにはどうすればよいですか?

または、ラジオボタンで動的リストビューを作成できる他の方法はありますか?

ありがとう:)

4

1 に答える 1

0

Work out how you would code the radiobuttons statically, and then use something similar to what you did for each list item to add the radiobuttons dynamically instead. Since you haven't spelled out details about those buttons, can't go into much more detail than that. (For example, you'll probably want a button group, and could append your individual buttons into that.)

于 2013-05-17T14:25:11.087 に答える