8 Replies Latest reply on Aug 8, 2017 9:07 AM by ClayUUID

    change src attribute of image component with javascript

    felixc35586252 Level 1

      hello..

       

      i want to load images from a webfolder into an image component placeholder choosen from the menu "Fenster" most probably
      "Windows" English randomly.

       

      I tried

       

      document.getElementByClasses("uiimage1").src = path + bilder[zufall];

       

      with image component class and instance name between the "..." but this had no effect.


      So how do I change the src? Refers html ID and class to the instance name and class of the image component at all?

       

      Thanks in advance