When I click down on my mouse on the image it will do //something
When I touch the image on my laptop touchscreen it does nothing.
Is it that I need to use a different event?
This is my code?
$("img.showPassword").on("mousedown", function(){
$(this).next().attr("type", "text");
$(this).attr("src", "icons/eye.png");
});
$("img.showPassword").on("mouseup", function(){
$(this).next().attr("type", "password");
$(this).attr("src", "icons/eye_close.png");
});