I am Using jquery how can I trigger an alert when mouseover the element with the data-code=GB atribute?
I tried this with no luck…
$(".jvectormap-container path[data-code='GB']").mouseover(function(){
alert('test');
});
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not to use standard parameter of the jVectorMap
onRegionOver? Your code won’t work in IE, because there are nopathelement in IE, it usesshapeinstead.