English 中文(简体)
为什么需要贴标签以打碎打。
原标题:Why are labels required for inputs with jquery.validate?

I am just starting with jquery.validation and like it. One reference I felt specifically helpful when trying to understand the big picture is http://docs.jquery.com/Plugins/Validation/Reference#Markup_recommendations. One part I didn t understand is why labels need to be associated with each input. Yes, I understand that labels are created to display error hints, however, these are different labels. I couldn t detect any change on the label tag, and it works fine without it. Anyone know why? Thanks

每个投入都有与其相关的标签:标签的用意是指投入的贴现。

<label for="firstname">Firstname</label><input id="firstname" name="fname" />
最佳回答

此处为<代码>。 实际是超文本元件,使用户在要素内点击案文时能够把控制分解起来,从而提高了用户的可使用性。

这意味着不需要为每个<条码>提供<条码>。

问题回答

暂无回答




相关问题
newbie jQuery plugin issue

I m just getting into jQuery plugins and I wanted to do a sort of hello world exercise with a barebones object-oriented plugin template. But I can t get the console.log statement in the setup() ...

Adding reverse highlighting to the jQuery image map plugin?

I m using the jQuery Map Hilighter plugin, but instead of fading a dark patch over each area, I would like to reverse this and instead make the surrounding area dark, keeping the hovered area the same ...

jQuery Address Plugin - Not allowing loading ajax?

I am trying to test the jQuery Address Plugin and it seems to not allow ajax to work in the change function. I am using: $.address.change(function(event) { $( #content ).load(event.value+ #...

JQuery validation plugin - error highlight problem

I have a form with two input textboxes, and I have included jQuery validation rules for both: <script src="../../Scripts/jquery-validate/jquery.validate.js" type="text/javascript"></script&...

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Impromptu plugin for Alert Boxes

When we use Javascript prompt Box something like this var ur_name = prompt("Enter Name"); We will have two types of values in this case: Value entered by user. Second VALUE can be NULL, when user ...

热门标签