The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery drag/drop help needed

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #36289

    I am working on a game system that has a series of ten icons. When each icon is dragged and dropped into a dropzone, I need to apply a new class to a specific div so it will show detailed info about that specific game.

    So if I drag poker, I get the poker info, spades and I get spades info, etc..

    I know I need to use the drop event but am not sure how the function within it should be wrote. I am thinking of targeting the HTML5 data attribute and the have it add a class that will show the different modal info windows.

    Here is what I have so far

    function initDragDrop() {
    cursor: ‘move’,
    helper: ‘clone’,
    containment: ‘parent’,
    revert: true
    } );

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.