Screenshot 2025-10-25 084848.png
No way to disable element preview? its preventing further work, stuck there.
@Drunk said in How can I remove an attribute from element ?:
Hello, I want to remove an attribute from element, Like this image https://imgur.com/a/km3f9y6 , I want to remove " disabled ", I tried to do it in java script, But I couldn't do it, I used this code ( document.getElementsByClassName('red-button-disabled').removeAttribute("disabled");
But it didn't work and it gave me alot of errors like ( TypeError: document.getElementsByClassName(...).removeAttribute is not a function ), So please help me with that, Thanks.
Use the "Execute Javascript On Element" action on the required element, with the code:
self.removeAttribute("disabled")