Skip to content

Tag: javascript

How to add a multiple models in the viewer?

I am creating a site with a forge-viewer and want to view multiple loaded models in a single window. How can I enable the function of loading and viewing several models in one place? This is for a new site. I have already tried all the methods and recommendations available on the Internet,but none of them hel…

Vuejs form not submitting on “enter”

TL;DR Question Why can I not use 2 of the same input fields in a form, and the enter button submit the form More detailed question Straight to the point. I’m trying to use the enter button to submit a form when an input element is focussed, which should then emit an event. I’ve written a codepen h…

Cannot change the background colour of

I’m using react and I came across a side navbar that I like. However I cannot change it from the default red background colour. I tried making my own custom css, and trying entering className: bg-dark etc on any line possible and it isn’t working? Can anyone help? Also here is a link to the side w…

Print set element in javascript

I am trying to print the set element through innerHTML, but I am not getting the desired result. While I tried with document.write(),it is printing but I want to use only innerHTML. Here is my source code: Output: 4 Desire output: 0 1 2 3 4 Please suggest me how to use innerHTML to print the output.I have tri…