Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140071

Why is my HTML file unable to use the javascript file that I have linked?

$
0
0

Javascript file is not used in the html file despite linking it

I am unable to use the javascript file and validate my HTML form. I am wondering if the issue is the linking of the src directory is wrong or could it be that I am missing something in my javascript codes. File Directory Image


<html>
<head>
<title>Registration Page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/validation.js"
type="text/javascript">
</script>
</head>
<body>
<form action="validate" method="post" name="register">
Full Name: <input type="text" name="name" required/><br/>
Email Address: <input type="email" name="email" required/><br/>
Address Line 1: <input type="text" name="address1" required/><br/>
Address Line 2: <input type="text" name="address2"/><br/>
Postal Code: <input type="number" name="postal" required/><br/>
Mobile Number: <input type="number" name="mobile" required/><br/>
Password: <input type="password" name="password" required/><br/>
Confirm Password: <input type="password" name="cfpassword" required/><br/>
<input type="submit" value="Submit"/>
</form>
</body>
</html>

Viewing all articles
Browse latest Browse all 140071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>