I am trying to overlay a button on Image in Gallery ( i.e. full screen mode in Photoswipe) and am unable to do it.
Does anyone have idea on how to do it ?
I am trying to overlay a button on Image in Gallery ( i.e. full screen mode in Photoswipe) and am unable to do it.
Does anyone have idea on how to do it ?
I guess as you have already replaced it once you can't replace it again. I am talking about this.
$('div.ps-caption-content').replaceWith('<button id="btn_IOS" onclick=copytext()>Play</button>');
Once you are getting button in caption you should try using something like
`$('#btn_IOS').replaceWith('#img001'); And I suppose here that "img001" is id of ur image control. :-)
Hope it will help you. All the best. :-)