I am working with jQuery UI droppables , and I wonder what better way to make a dropped clone use a different IMG SRCthing than the drop item.
IMG SRC
In the demo version of the photo editor, the thumbnail falls into a slot of the same size. I would like to put a large image in a small slot, and therefore I need its clone to use its thumbnail instead of the full image.
Any suggestions on the best way to handle this?
The droppable API accepts a drop callback in its parameters. Use it to change the src image, for example:
$('#dropContainer').droppable({ drop: function(e,ui) { $(ui.draggable).attr('src','/path/to/different/image'); } });
Source: https://habr.com/ru/post/1697939/More articles:Regular expression: match (aaC # to VB.Net conversion utility that correctly handles automatic properties? - c #Is there a better way to check if a JSON request accepts? - jsonConvert C # VB.NET - c #Flash export / publication time - flashIs one object divided into two web services? - c #Backing up a DB2 database - databaseWhich class handles popup / notification windows on iphone? - iphoneTools / Components for Creating a Survey Application - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1697944/how-can-i-create-a-mysql-join-query-for-only-selecting-the-rows-in-one-table-where-a-certain-number-of-references-to-that-row-exist-in-another-table&usg=ALkJrhgX6QFNZlJgiLUhAhDGro7aXcfnhQAll Articles