+ 3
SOLVED Why isn't this button working?
The alert function goes straight to the wrong function automatically, please help someone https://code.sololearn.com/Wbut77Wgm2W0/?ref=app
17 Réponses
+ 7
Alison quinn here is your code modified to use a flag. It is just a quick change and you can refactor it to toggle the flag and limit the flags scope.
https://code.sololearn.com/WQafVNtS8kIA/?ref=app
Ipang
+ 4
A button doesn't have clicked() method or property according to MDN https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
What are you trying to do anyways?
+ 4
P.S. if rather than deleting your questions, if you leave them they can be helpful to others with similar question(s)
+ 3
Ipang I'm trying to make it so that if the button is clicked and then save is clicked, it will alert "button was clicked" but if the button wasn't clicked and save was clicked then "alert button was not clicked".
+ 3
Yes, now I remember. Alison posted a question about that code earlier this week, and the post was deleted. I was gonna try to solve it but then I see the post had gone : D
+ 3
Alison quinn Your not dumb, and glad to help as I know Ipang is.
+ 3
Alison quinn that let's you flag an answer as best. It helps those that review the thread focus on the answer that you felt best answered the question. Sometimes there are a number of best answers and then some choose not to set one as best answer.
+ 2
Paul K Sadler thanks, sorry for deleting it 😅
Ipang oh damn seriously, I'm so dumb, I should have kept it there, thanks for the help guys :')
+ 2
One last question, what does that tick button do? The one beneath the down vote button
+ 2
Try to fix the code..
+ 1
If you want something to happen when the red button, that's not red, is clicked then you need an onclick like you have on the save button.
+ 1
Paul K Sadler ive already tried adding another onclick function but It didn't work
+ 1
Can you post that code and describe what you expect to happen when the button is clicked(if it'sdifferent than above)? Then we can comment on what we think the issue is with you not getting the desired result.
+ 1
Paul K Sadler
Here's the original code, I had to give a shorter question since people tend to help when the code is only a few lines long
I just want to alert the user if a button has not been clicked,
https://code.sololearn.com/W8f9JY2LexMd/?ref=app
+ 1
Oh ... i have a friend called KARTHIK try to reach him on sololearn . Im sure he can help
+ 1
한국 소녀 It's ok, the issue has been sorted but thank you!
0
엏뉴ㅓ무 I have tried :) the problem is solved