Skip to content

Tag: html

How random option catch correspondent number?

How random option catch correspondent number ? For example: If question random option is (4) (2) (3) (1) arrangement Answer should be (1),because set class=”correct” in question1 option1 but in the case (1) is X (wrong answer). I guess it get <div> position, so array and real number not matc…

Why selectedIndex doesn’t work in my code?

I have a following, easy example: when I choose option on my list then no alert pops-up. I also tried with: but can’t return index number of given option. When I use .text instead of .index (to get text from option) it also doesn’ work Answer There is a syntax issue (missing the addEventListener c…

Get specific tag values using jquery

I am trying to get “Pen” , “All Pen” values. Here is what i tried :- Please take a look at the code & share your thoughts Please take a look at the code & share your thoughts Answer Let’s first try to fix your HTML. Considering I don’t know what your program or site…

vuejs listing for events on disabled elements

How can I listen for events on a disabled element? I have an input box that I have disabled but that I want to enable if the user double clicks it. I know this is possible using a label and switching the label off using CSS. I want to know if there is a way to do this without a

Javascript / Three.js is not working in https

I recently switched my http site to https. Since I made this change, one of my projects no longer works. In this random generator, the background using the Three.js library does not appear when the url is in https But in http , it works beautiful and well. Does anyone know any solution to this problem? Thank …