I want to make a custom toggle button , for instance when I click on the button , the star turns on and when I click again ,the star turns off. i've tried some codes but they change the button to an image and when I click on it ,the image changes . I mean ,there is no button , it's just an image .
I want the image to be inside the button , like the default toggle button and I just need to change the image inside it .
How can I do so ?
thanks