Home  >  Article  >  Web Front-end  >  ASP.NET jQuery Example 17 Validating ListBox_jquery by using jQuery validation plug-in

ASP.NET jQuery Example 17 Validating ListBox_jquery by using jQuery validation plug-in

WBOY
WBOYOriginal
2016-05-16 17:56:26978browse

Here we take an example to verify two rules of ListBox:
•Verify required items
•Selection range is 0~4 items
Interface code:

Copy the code The code is as follows:













Please select the car type:

< ;asp:ListBox ID="lstCar" runat="server" Rows="5" SelectionMode="Multiple">















Script code:
Copy code The code is as follows:


Recipe17






Interface effect:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn