我有一組單選按鈕,我需要檢查是否有人被點擊過,如果沒有,然後拋出一個erorr我如何驗證下面的jquery?如何檢查具有相同組名稱的兩個單選按鈕
<legend>Follow Opening Script?</legend>
<p>
<strong><asp:RadioButton GroupName="OpeningScript" CssClass="inline-radio" ID="rdoOpeningScriptYes" runat="server" Text="Yes" TextAlign="Right" /></strong>
<strong><asp:RadioButton GroupName="OpeningScript" CssClass="inline-radio" ID="rdoOpeningScriptNo" runat="server" Text="No" TextAlign="Right" /></strong>
</p>
你真的應該發佈實際的HTML,而不是asp標籤。 – ThiefMaster 2012-04-04 07:29:26
http://stackoverflow.com/questions/277589/validation-of-radio-button-group-using-jquery-validation-plugin這會有幫助嗎? – TRR 2012-04-04 07:30:54