我有这样jQuery验证消息问题
<input type="radio" name="specific_parent" id="parent_one" class="radio" value="existing_parent"><label class="redio_label" for="existing_parent">Existing Parent</label>
<input type="radio" name="specific_parent" id="parent_two" class="radio" value="prospective_parent"><label class="redio_label" for="prospective_parent">Prospective Parent</label>
<input type="radio" name="specific_parent" id="parent_third" class="radio" value="other"><label class="redio_label" for="other">Other</label>
我已经申请jQuery验证这样三个输入单选按钮:
rules: {
specific_parent: {
required: true
}
},
messages: {
specific_parent: {
required: 'Please select radio button'
}
}
问题是,它显示第一输入单选按钮后的错误消息,并我的布局是休息。
你想在哪里显示它? – ozil
你正在使用什么验证插件? – davidkonrad
下所有三个单选按钮! – Iffi