0

javascript cannot catch id of zul component. Please help.

asked 2018-12-28 14:11:20 +0800

cindy951357 gravatar image cindy951357
1 1

Hello. I am integrating jquery ui and zk.

The alert function only gives me "undefined", while I actually wrote the ID in the zul page.

my javascript: $("."+draggableDivString).draggable({

    start: function(e,ui) {
         alert($(ui.draggable).attr('id'));
    },
    drag: function() {

    },
    stop: function() {

    },
    containment:"parent"
});

Could anyone tell me how to solve this?Thanks.

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2018-12-28 14:11:20 +0800

Seen: 4 times

Last updated: Dec 28 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More