jeudi 26 septembre 2019

How do I change the border color of a Checkbox using JavaScript for Google Chrome?

I am trying to to reproduce this border effect

document.getElementById("e1").style.border='2px solid blue';
<input type="text" id="e1">

for checkboxes and radio buttons. I have read similar posts to this, but none seem to offer a solution that works. I am using the JavascriptExecutor object in a Java application so keeping the code to JavaScript is the goal. I've read a good approach is to wrap the checkbox with a div, but I am not strong enough with JavaScript to do that.

Ultimately, I'm trying to highlight an element after I change it with Selenium, so even making the Labels bold will suffice. Any help would be appreciated.




Aucun commentaire:

Enregistrer un commentaire