Linked Questions

617 votes
7 answers
208k views

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include: jQuery silently failing to ...
Felix Kling's user avatar
-1 votes
2 answers
220 views

I am trying to make it so when you click on each image in the html you recieve an alert telling you what each picture is. <html lang="en"> <head> <title>Task 2</title>...
Mike's user avatar
  • 17
2 votes
3 answers
2k views

Consider the following code : <html> <head> </head> <body> <script> function showAlert (text) { alert(text); } x = document....
iceman94's user avatar
  • 129
-1 votes
4 answers
7k views

I am creating a Javascript program where I would like to make styling changes to an element by its class name. There are multiple elements with this class name but I want to target the one that is ...
Fishbird DD's user avatar
0 votes
1 answer
1k views

I have the following code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>StackOverflow Question</title> <style> ....
ecqo's user avatar
  • 83
0 votes
1 answer
173 views

I need to make a game where a ball drops and cannot hit the floor, and you have to make it bounce again before it hits the ground, but I don't know how to make the ball jump when the mouse clicks! ...
user avatar
-3 votes
2 answers
132 views

I have an onclick on a button but it is not working properly. <a href="javascript:void(0)" class="button" onclick=\'websiteopen("'.$site->page_id.'","fb"), PopupCenter("http://nullrefer.com/?'.$...
XDesign's user avatar
-2 votes
1 answer
97 views

CONFIG.PNG <-- How to change the Config in Tampermonkey if i change it there it works but i want to do it in Tampermonkey does that work and how?
Anony DealSmoke's user avatar
1 vote
1 answer
109 views

I am pretty new to JavaScript and have been busting my brains as to why this won't work. I have read and tried many posts (mainly this one, this one, this one and this one) but none have solved my ...
Felix's user avatar
  • 21
-4 votes
1 answer
104 views

I'll explain myself: I'm building a simple web, and at some point in the HTML I have this <button id="choose" type="button" onclick="choose()">Choose</button> ...
jose_rullva's user avatar
-1 votes
1 answer
36 views

I have a query string (example) ?something=1&something=3 I want to find and then add these parameters to a new URL and goto that URL on button click event. I can find the query string using var x =...
chris walker's user avatar