I want to retrieve the input of the fields in the form of an array to the flask, on clicking a button, and without reloading the page. All the input fields are dynamic but the input filed id is static. Here, above are the input fields and I want to retrieve the input with the click of the “calculate but…
Tag: html
Can someone tell me why this doesn’t work? (javascript html node selector)
This query selector doesn’t work on this HTML. It works in CSS. Can anyone tell me the correct solution? Basically, I am using an older version of the material table and want to hide the “Export as PDF” option. I know the newer version allows it in exportButton option. Answer You need JQuery…
Slick Carousel showing vertical on mobile instead of horizontal
I have a Slick Carousel in my webflow site. Desktop, tablet works fine, but when I switch to mobile the items are stacked up in vertical order instead of horizontal. Interesting fact is that when I open chrome dev tools and squeze the width of the page to mobile, it works fine, but when I actualy use the Mobi…
How can prevent Stored XSS by iframe?
I use Extjs and JS to build a dialog where can display my html data from DB, that data is wrapped with iframe like this: I tried to add sandbox to iframe, but it doesn’t work, the XSS alert still show. Then I tried to change to <iframe src=’#’… sandbox>, but XSS alert still show.…
how do I fix the score in my option quiz?
I have a problem with the option quiz, more precisely with the evaluation of the correct answers. I don’t get a score and it still stays at 0. Thank you for your help. Answer So, First, ids should unique. Remove all your id=”mc”. Second. you need to get the value of the “Selected”…
How to set 4.5 stars with jQuery on page load?
I am trying to make sure that when the page is loaded, the rating is automatically filled with 4.5. There must be four and a half stars active (yellow) with jQuery. My code: What can I do in jQuery to give 4.5 stars to this? Answer The easiest method is to set the value directly in the HTML: using the
jQuery DataTable: thousands separator option doesn’t work
Here I set as described the data table thousand separator, but it doesn’t work the way I expected. Can anybody help me? Thanks Answer You can use a column render function to convert your source data from numbers without thousands separators to the format you want. This has the following features: It wil…
Passing $& in replace()-function to another function
This code will take str and put each word in a <span>. I want to add some functionality, so some words will be highlighted, but can’t figure out how to pass $& (which is a word) to the highLight function. Right now I have written {$&} which does not work. Answer You’re really close, …
Using symbols in an input to format text
I’m struggling to find a solution which allows a user to input in a input field, however they can style their text when it displays after the input for was submitted. For example, a user could enter **message** into the input field, JavaScript can detect that the ** on the start of the word/sentence and…
How to make a number mask using only JavaScript?
good evening. I wanna create a mask for my JavaScript project, using only Pure JavaScript, without any jQuery stuff or anything like that. What a want to do is, while I’m writing a bunch of numbers, they will be placed in certain spots. Like, for the final format, I want to do “XXX.XXX.XXX-XX̶…