Where to define function to be used for link?

Recommended Posts


I am trying to use 'link' but unable to make it work when function is not defined in the <script> tag in html.

Please refer

Clicking on Foods will show alert but clicking on Apparels will give error in console as 'hello1 is not defined'.

Why link functionality is not working with 'hello1' function which is defined in the js part?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now