Revision history [back]

click to hide/show revision 1
initial version

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

cindy951357 gravatar image cindy951357

javascript cannot catch id of zul component. Please help.

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.

javascript cannot catch id of zul component. Please help.

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({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.

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