Question: 1. Present the user with with an XHTML page cntaining two text entry areas. 2. The user will input values in each, then select a
1. Present the user with with an XHTML page cntaining two text entry areas.
2. The user will input values in each, then select a button that calls a JavaScript function.
3. The function will search the second data entry for the first data entry. In other words, it will search the second string entered to see whether it contains the first string entered.
4. The application will require that your script detect the text entries made by the user.
5. Use the script below to complete.
//alert("script running");
function search(sub, string){
alert("function runs");
//indexOf method is found on page 6-12
}
CIW JavaScript Specialist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
