Question: Javascript: Hello, guys could you tell me how to make this expression? 1) Course code is mandatory and should have the following pattern (140XXXXX-X) where
Javascript:
Hello, guys could you tell me how to make this expression?
1) Course code is mandatory and should have the following pattern (140XXXXX-X) where X is a digit (0-9)
- I tried : if (document.getElementById("CourseCode").value.search(/^(140\d{8})$/) != 0)
but It didn't work :(
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
