如何最好地将客户端验证添加到这两个字段中
how would I best add client side validation to these two fields
当用户选择"您的浸礼会健康体验"时。如何最好地对"姓名和联系信息"输入字段应用客户端验证?
<ul class="textinput reason gridA">
<li><p class="feedback"><label><input runat="server" type="radio" name="feedbackreason[]" aria-label="What would you like to tell us about?" aria-valuetext="Your Baptist Health experience" title="What would you like to tell us about?: Your Baptist Health experience" id="bhexperience" class="feedbackreason reqType" value="bd" clientidmode="Static" /> Your Baptist Health experience</label></p></li>
<li class="block panel-content marginT20">
<div class="hidePanel" style="display:none">
<p class="hl4">To enable us to respond to your comments, would you please let us know who to contact?</p>
<p class="marginT10 marginL10"><label for="feedbackName" class="alignL">Name:</label><input type="text" name="feedbackName" id="feedbackName" class="text feedbackName marginL5" title="feedback Name" /><br />
<br />
<label for="contactInfo" class="alignL">Contact Information:</label><input type="text" name="contactInfo" id="contactInfo" class="text contactInfo marginL5" title="Contact Information" /></p>
<p class="hl4 marginT10">For immediate patient portal service, please call
<br />
<strong><a class="phoneCall" style="color: mediumvioletred" href="tel:18446220622">1.844.622.0622</a></strong> (toll-free, 24/7)</p>
</div>
</li>
</ul>
将必需的添加到要强制用户填写的输入元素中。
<ul class="textinput reason gridA">
<li>
<p class="feedback">
<label>
<input runat="server" type="radio" name="feedbackreason[]" aria-label="What would you like to tell us about?" aria-valuetext="Your Baptist Health experience" title="What would you like to tell us about?: Your Baptist Health experience" id="bhexperience"
class="feedbackreason reqType" value="bd" clientidmode="Static" /> Your Baptist Health experience</label>
</p>
</li>
<li class="block panel-content marginT20">
<div class="hidePanel" style="">
<p class="hl4">To enable us to respond to your comments, would you please let us know who to contact?</p>
<p class="marginT10 marginL10">
<label for="feedbackName" class="alignL">Name:</label>
<input type="text" name="feedbackName" id="feedbackName" class="text feedbackName marginL5" title="feedback Name" required>
<br />
<br />
<label for="contactInfo" class="alignL">Contact Information:</label>
<input type="text" name="contactInfo" id="contactInfo" class="text contactInfo marginL5" title="Contact Information" required>
</p>
<p class="hl4 marginT10">For immediate patient portal service, please call
<br />
<strong><a class="phoneCall" style="color: mediumvioletred" href="tel:18446220622">1.844.622.0622</a></strong> (toll-free, 24/7)</p>
</div>
</li>
</ul>
相关文章:
- 如何使用jquery将两个字段组合为下拉菜单中的选项
- Angularjs 通过选择不同选择框中的两个字段来填充选择框
- 使用Join,要求两个字段中的一个字段为非空
- 使用一个提交按钮验证两个字段
- 如何使用angular ui select过滤两个字段中的数据
- jQuery ui自动完成下拉列表中的两个字段
- Jquery使用PHP和MySQL基于一个字段自动完成两个字段
- 比较 angularjs 指令中的两个字段
- 如何根据返回的 Json 更新两个字段
- 当两个字段为空时如何显示错误消息 javascript/jquery.
- 比较两个字段的验证
- 如何对具有两个字段的对象进行排序
- 对对象的两个字段进行角度ng重复搜索
- 使用 Javascript 的 HTML 中两个字段之间的区别
- 懒惰.js如何选择两个字段的不同(uniq)
- jQuery 验证:验证一个字段或一对的两个字段是否为必填字段
- 如何对此 javascript 函数进行编码以在选择特定类型时显示两个 + 字段集
- 记住密码基于两个字段
- 匹配 JavaScript 中两个函数中表单中的两个字段
- 使两个字段的组合在我的收藏中独一无二