Home  >  Article  >  Web Front-end  >  ASP.NET jQuery Example 15 Validating CheckBoxList_jquery through the control CustomValidator

ASP.NET jQuery Example 15 Validating CheckBoxList_jquery through the control CustomValidator

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

First look at the interface code:

Copy code The code is as follows:







< /tr>


< /tr>



Please select the car type:












ForeColor="Red" ClientValidationFunction="ctvCar_Validation">



Control CustomValidator Related parameter description:
ErrorMessage: Set the verification prompt information
Display: Set the display mode, Dynamic means that when the prompt information is not displayed, the current position will not be occupied
ClientValidationFunction: Set and define the client-side custom verification function
Client script code:
Copy code The code is as follows:


Recipe15



Final display 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