Page 1 of 1

Image name from image control

Posted: Wed Mar 28, 2018 9:00 pm
by Bernie

I do have an image displayed in an image control (jquery).

The name of the control is "mobileimage_PictureTaken".

How do I get the name of that image not using thye click event?

I would like to do something like

Apperyio("mobileimage_PictureTaken").getName


Image name from image control

Posted: Thu Mar 29, 2018 6:36 pm
by Serhii Kulibaba

Do you need to get the path to that file? Please use the JS code below for that:

prevar path = Apperyio("mobileimage_PictureTaken").attr("src");/pre


Image name from image control

Posted: Thu Mar 29, 2018 11:46 pm
by Bernie

Thanks, Serhii.
That works perfectly fine.