0 Replies Latest reply on Feb 18, 2017 2:01 AM by Spout

    Textfield with image calling function

    Spout Level 1

      Hello,

      I am looking for a way to have a action on an image loaded into a text field

       

      her is my code

       

      function SelectionImage(reference){

       

           alert('test ! = '+reference)

       

      }

       

      var ContenuPrint = '<a href="javascript:void(0)" onClick = "SelectionImage('32');" ><img id="32" src="landscape.jpg" ></a>';

       

      sym.$("ChampsText").html(ContenuPrint);

       

      but this doesn't work

      any idea ?

      thank for your help