How can I check if an element still exists in the DOM? <div id="parent"> ... <div class="my-class"></div> </div> let parent = docum
I am trying to generate a list of names from an Array with this piece of script const names = ["John", "Hanna", "Luis", "Halley", "Maive"] con
var formHandle = document.forms.infoForm; formHandle.onsubmit = processForm; function processForm() { var formName = formHandle.f_name; var formCol
I am making a simple JS game framework and I am trying to make an image that can move around canvas with WASD. The code below should render a movable image but
I am trying to make the text and image be on the same level but when I add the text the image moves, I am unsure on how to fix it and looking for help. I though
Why does the below canvas have a black background? Because of it, the text behind the canvas is not visible. I need it to be transparent to show the elements be
Hi I’m html learner and I have an issue with my code but I don’t know what’s the problem The prob is weird , when i enter the right pass in on
I have a couple of drop downs, when a venue is choosen from the first one, it should populate the second drop down with floor values. Using jQuery AJAX I am abl
When trying to display replies of users on my page it displays them with SQL syntax, like so: ('reply',) I've tried str() when returning from my route. html: &l
Context: In my web app I create several groups of elements all positioned relative to each other in 3d space. All elements have transform-style: preserve-3d. A
In the following example code, I attach an onclick event handler to the span containing the text "foo". The handler is an anonymous function that pops up an ale
Let's say I have 3 divs... HTML: <section class="features"> <div class="item"> <h3 class="item-name">Item1</h3> <
I'm extremely new with JavaScript and TypeScript (like, day 3). I need to let the user delete a value that they entered into a table. I've been working on this
Modern frameworks like Vue and React start with inline CSS inside individual components. For example, in a Vue single file component, we include all the Javasc
Hi I need an animation that makes a div go from left to center, but it doesn't work. This is my code: $(document).ready(function () { $(log).click(funct
I am trying to make a website using Flask. I have designed the HTML using TeleportHQ, a drag and drop HTML designer that gives you the HTML and CSS files. I hav
I have a simple HTML form that has a dropdown. <form method="get"> <select name="category[]" multiple class="form-control"> <option v
I have a simple HTML form that has a dropdown. <form method="get"> <select name="category[]" multiple class="form-control"> <option v
I have this basic snippet for vue-html { "BANNER1": { "prefix": "banner", "body": ["<!-- ----------------", "/// $1", "
I have this basic snippet for vue-html { "BANNER1": { "prefix": "banner", "body": ["<!-- ----------------", "/// $1", "