I’m trying to remove the border of a div, but no luck. I’ve commented out the code in my css and it is the correct property that I want to remove. Here is the code I’m using currently. The background-color change is working that’s in the code below but the removeClass is not.
var tab = getURLParameter("tab");
// Disable the visual style of the button since it is disabled for this page.
if (tab == "Property") {
$(".scrape-button").css('background-color', '#efefef');
$(".scrape-button:hover").removeClass('border');
}
Any ideas? Thanks!
The jQuery selector with hover pseudo class has no effect because there is no element in the page with hover state. I recommend you to try a different aproach