0
我知道如何加載一個對話框<a href="alert.html" data-rel="dialog">test</a>
我想要做的是有對話框加載,如果任何表單值是空白的。當點擊下一個(page15.html)鏈接時,這將被觸發/檢查。有關如何完成此任何建議?jQuery Mobile的:如果inputbox(s)是空的加載對話框
<a data-role="button" href="page15.html" data-icon="arrow-r" data-iconpos="right">
Next
</a>
<form action="#" method="POST">
<div data-role="fieldcontain" class="no-field-separator">
<fieldset data-role="controlgroup">
<label for="textinput2">
<span class="c_404040 f_bold">Body Fat Measurements</span>
</label>
<input id="textinput2" placeholder="Subsc (mm)" value="" type="number" />
<br />
<label for="textinput3">
</label>
<input id="textinput3" placeholder="Supra Crest (mm)" value="" type="number" />
<br />
<label for="textinput4">
</label>
<input id="textinput4" placeholder="Bic (mm)" value="" type="number" />
<br />
<label for="textinput5">
</label>
<input id="textinput5" placeholder="Tri (mm)" value="" type="number" />
</fieldset>
</div>
</form>
代替的console.log我怎麼會迫使它加載的 ...關鍵是獲取data-rel =「dialog」作爲其中一個屬性。 – acctman