tony noriega
tony noriega

Reputation: 7663

jquery grab and move toggle element

i have a div that is displayed via:

$('a#biz-blue-lnk').click(function() {
    $('#business-blue').show();
    return false;
  });

what i want to figure out is when this DIV is displayed, can i enable the user to grab it and move it around the screen? potentially if they click another DIV they could have two elements on screen... and would like them to be able to move them around to see each one...

possible?

Upvotes: 0

Views: 1479

Answers (2)

Andy E
Andy E

Reputation: 344575

Check out the Draggable, part of jQuery UI. It's as simple as $('#business-blue').draggable(); then!

Upvotes: 0

Quasipickle
Quasipickle

Reputation: 4498

Look into jQueryUI & the draggable() functionality.

Upvotes: 1

Related Questions