Zum Inhalt

YDRjRectangle – JQuery rectangle selection – new version

After some weeks of dealing with jquery and the rectangle function i released earlier i wrote a new and cleaner version, renamed it to YDRjRectangle and put it into a plugin like shape, so everyone can implement further functionality for selecting objects or do other customizing to fit its needs.

If you want to use a technique like click & drag/mouse move you should get the disabletextselect plugin from jdempster, to get rid of unwanted text selection while drawing your div rectangle.

Here is the jsfiddle Project: http://jsfiddle.net/TqdMM/21
Please check out the older version of this script: http://marco-difeo.de/2011/06/13/jquery-rectangle-selection/

I’ve updated the jsfiddle to work with version 1.9+ of JQuery

Embedded sourcecode

Try out a demonstration

Published inCodingJQuery

Ein Kommentar

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.