koze85
Member
Hello I searched everywhere in the forums and wiki but cant find the answer
I am trying to change the image of an image element with javascript and it doesnt change with the
var imgelement = Fabrik.getBlock('form_1').formElements.get('users___img');
imgelement.update('fullpathtoaURL');
nor with the
imgelement.set('fullpathtoaURL');
and if I try to read its value (currently it has a predifined image from backend)
alert(imgelement.get('value'));
I get only "/" as an output
Does anyone know how can I change the image and the value that holds in the hidden textbox of the image element?
I am trying to change the image of an image element with javascript and it doesnt change with the
var imgelement = Fabrik.getBlock('form_1').formElements.get('users___img');
imgelement.update('fullpathtoaURL');
nor with the
imgelement.set('fullpathtoaURL');
and if I try to read its value (currently it has a predifined image from backend)
alert(imgelement.get('value'));
I get only "/" as an output
Does anyone know how can I change the image and the value that holds in the hidden textbox of the image element?