jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput event.target giving wrong value

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • event.target giving wrong value #66902

    Debashis
    Participant

    Hi,

    I am trying to get the target/srcElement when I click on any date of calendar but each time i am getting different values. For ex:

    $(document).on(‘click’, function(event){
    console.log(event.target || event.srcElement);
    })
    when I click on any dates of calendar i get tbody or container div or table as event.target. And even some time body. How can I resolve this?

    Thanks,
    Debashis

    event.target giving wrong value #66908

    Peter Stoev
    Keymaster

    Hi Debashis,

    You should use the Documented events. event.target in addition is not a parameter which is set or affected in any way by our widgets. This is defaut parameter which web browsers set.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.