Back

JS changing text inside button

  • 0
  • Functions
  • Web
Minly999
28 Sep, 2023, 17:00

I wanted to change text of slick arrows but inner html and textcontent properties dont work it shows in console but i dont understand why it dont work maybe anypne know what my problem or other way to do what i want

TL;DR
The user is trying to change the text inside a button, but using innerHTML and textContent properties don't work. A possible solution is to target the :before pseudo-element that adds icons.
Drake
28 Sep, 2023, 17:17

Typically, there's a :before that adds icons. maybe you need to target that.

FYI, this is an Appwrite (https://appwrite.io/) discord server, for general HTML/CSS questions, you might find more help in a different discord server

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more