Question: I’d like to know if it is possible to add a custom spellchecker function to a Textarea. Background: I am currently using bootstrap-vue’s b-form-textarea component to display a textarea that accepts a list of values from a user. I am already validating state and displaying whether the tex…
Tag: html
Running a script added after the page has loaded
I need to add the pages later for my project, but after adding the script tag at the bottom is not executed. Main Code of new page Page loads sucessfuly but the javascript not be executed. How i can execute the script tag on new page added? Answer I didn’t really understand your question. From what I di…
Alternative to window.open that doesn’t involve CORS
I have a page with a list of links that were set to open in new windows/tabs with target=’_blank’ and I wanted to give users a choice to load links in the same window so I’ve set up a checkbox to toggle the ‘newwin’ boolean and now open links with the following function It works …
Perform special functions with drop-down menu
I’ve been sitting on a certain function for quite some time now. After a lot of research and testing, I have not come up with a final solution. solution. The user should be able to select which table row he wants to edit with the help of a dropdown menu. Based on the dropdown selection after confirming …
How can i make to reenter my input fields and that my form do not submits?
I have a form which shows an alert with a message when the two password input fields do not match but if they do match it shows a confirmation message before creating the user. The issue im having is that even if my confirmation function returns false which means that in the confirm message i selected cancel,…
Dynamically change attribute of html button with Javascript
I have an html button where the ‘data-item-price’ attribute needs to be dynamically set on page load. The button has to be html but I can manipulate it with Javascript. Answer Using DOM’s setAttribute() property Using JavaScript’s dataset property
How can I wait for a click to be executed?
I am trying to figure out how I can update the playerValue for my Rock Scissor Paper game. I have a function that registers a button click and should then update the playerValue accordingly(1,2 or three depending on which button was clicked). The problem is, when I call the function, the playerValue remains 0…
Bootstrap CSS positioning
The words or text below the logo in the navbar are not moving to the right of the logo (for reference link to the page -> http://127.0.0.1:5500/index.html). Additionally the logo is not shifting to its left – it’s happening in basically all the navbar codes. I’m trying to do this using CS…
Fetch data is shown in console.log, but not in HTML TAG
I’m trying to fetch a JSON data from our server and then inserting it in a <script> TAG in client-side. See below: The problem is: when I console.log(data.imports), it shows me the fetched data, but the <script> TAG looks like this: What it looks strange for me is when I use JSON.stringify(d…
Single-page-application with HTMX, URL browsing history and manual reloading of a page
I have an application with fixed header and footer (it is important that they are not reloaded when we navigate through pages). I use HTMX. The attribute hx-push-url allows to have browsing history through the pages: we can use the “back” and “forward” buttons, and it works as expected…