I want to add an image click event inside the content Editor web part using the JavaScript only. Here is the scenario which i want.
- I have 4 images in the main sharepoint page insides the content editor webpart
- I have 4 list in the Sharepoint site(Team A, Team b, Team C, Team D).
- Each Team in the list will contains 50 Names.
- Based on the Current user login, if the user selects first images i need to check weather he belongs to the first list or not. if current user name is the team A list name i need to set alert"congratulatuion" otherwise i need to say u "u have selected the wrong team name"
- Based on the Current user login,if the user selects Second images i need to check weather he belongs to the Second list or not. if current user name is the team B list name i need to set alert"congratulatuion" otherwise i need to say u "u have selected the wrong team name"
- Based on the Current user login,if the user selects third images i need to check weather he belongs to the third list or not. if current user name is the team c list name i need to set alert"congratulatuion" otherwise i need to say u "u have selected the wrong team name"
- Based on the Current user login,if the user selects fourth images i need to check weather he belongs to the fourth list or not. if current user name is the team D list name i need to set alert"congratulatuion" otherwise i need to say u "u have selected the wrong team name".
only using javascript and jquery. No visual studio