I have many Divelt tag with a unique ID and a click event for a specific image I have to refresh it I am trying. how can I do this? My click event for rotation looks like this: Simply add a query string to Here is an example (value is the ID of the image on the page It looks like there is no ID in your
$ ('. Rotateimg'). Click (function (e) {e.preventDefault () (ID), function (event); var id = $ (this) .attr ( 'id'). Substr (10); $ .post ( "/ functions / photo_functions.php ", {f: 'rotate', imgid: id} {If (status == 'true') {// I can load how specific image after being rotated again}});});
img URL (e.g.
? V = 1 ), which will make the browser fooled into thinking that this is a new image.
$ ('#' + id) .prop ( 'Src', function (i, v) {var separator = v.indexOf ('?') == -1 '' ':' & amp; '; return V + divisor +' v = '+ (new date ( )) .gettime ();});
img on the page, you can cross the DOM to find it, like: < / P>
$ (this). Parent (). Prev () ('& Gt; img') Find
Comments
Post a Comment