Programming Examples
HTML form that accepts a students name and roll no Use JavaScript function to perform following validation
Write an HTML form that accepts a students name and roll no. Use JavaScript function to perform following validation.
- Roll no field should receive only numeric data
- Name field should not be empty and shall not exceed 20 characters in length.
Output/ Explanation: