Hey! Do you have any query related to front end?

Sign in Sign up

Javascript drag and dropBack

It is a very light script which facilitate drag and drop functionality. One one has to add "drag" class on element, rest plugin do its work.There is a class "dragStat" has been added, where one can give css effects to elements.


Add elements on the page with class "drag".

Drag Me


Write css for the class drag as mentioned below, mainly its position abolute property rest you can add by your requirement.


External JavaScript:

Where to edit class if required.

In script if you want to edit element's class i.e. "drag". Search for:

var dragElement = document.getElementsByClassName('drag');

and change the class name as per requirement. Similarly you can change "dragStat" class too. Only you have to serch for the class "dragStat" and replace as per your choice.

That's all you have to do.

How to comment:

  • Create an account in discuss by clicking on login next to arrow.
  • Create password for discuss and varify your email id, through your mail.
  • Refresh page and comment.

You might also like

  • Convert query string to json

    Convert querystring to json

    • 286
    • 0
    • 286
    • facebook icon
    • twitter icon
    • google plus
  • Pure css3 accordion

    A pure css3 accordion which has been created by target pseudo selector.

    • 449
    • 21
    • 449
    • facebook icon
    • twitter icon
    • google plus
  • Characters limit in textarea

    Limit charecters in textarea without extra space.

    • 324
    • 5
    • 324
    • facebook icon
    • twitter icon
    • google plus

Latest quries posted

gopa kumarabout 4 years ago

amit singhabout 4 years ago

rahmat aliabout 4 years ago

mandavi tiwariabout 4 years ago

rahul sharmaabout 4 years ago

Ask question
Latest video
Learn Angular
Profile pic
Guest Back