Skip to content

Tag: javascript

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…

display csv file inside a table using javascript

I have this script that gets the csv file, and separates it by column. I am having trouble to display the values in a table. I can’t seem to get each column to create a new table row. Any help will be appreciated as I am not very good at JS. The data.csv looks something like this: The console.log(data, …

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…

How to create WebGL 2 renderer in iOS?

I am trying to create a THREE.WebGLRenderer, but it seems that on iOS, it will only create a WebGL 1. Here is my code for creating the renderer and printing the capability: Is there a way to create WebGL2 renderer on iOS? Answer Browsers on iOS all use WebKit which does not yet support WebGL 2.