I want to be able to create a div in my application by clicking and dragging. Clicking will start creating a div, while dragging will resize the div.
I saw similar functionality in several jquery calendar plugins, I also want to be able to do this in my application.
Can anyone point me in the right direction? Any jQuery plugin or something that I am missing?
Thank you for your help.
You can fulfill this plan:
When the mouse button is down, you record the x / y values. When it appears, you record new x / y values. Subtract the first from the last; if the result is not negative, create a div with these sizes.
Do not reinvent the wheel: http://plugins.jquery.com/project/Plugins/category/45
Source: https://habr.com/ru/post/1387045/More articles:Use Oracle Forms Authenticated Database in MVC3 Application - oracleSSIS is dropped in DT_WSTR without dropping, or so it seems - castingHow to set hard-coded symmetric encryption in WCF using AES256? - encryptionDoes .NET support TLS-PSK? - .netThe most efficient way to create a grid is to view my page - javascriptOpening two SQLConnections with the same ConnectionString - c #C # Linear Algebra Library - c #Errors when creating Android projects in Eclipse - androidVS 2010: Exceptions when a project XAML file that includes System.Windows.Interactivity is opened - exceptionPerl scheduling priority runnig OS features - linuxAll Articles