Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
How add Javascript to the checkbox before the ultrawebtree?
posted

I use the ultrawebtree with checkbox, Now I want to popup a message with javascript (for example:BLOCKED SCRIPTalert("hello world!");) when I click the checkbox before the ultrawebtree,So I want to get your help, please give me some example code.Thanks!

Parents
  • 185
    posted

    Hi,

    From my understanding, you want to alert whenever a checkbox is checked using JavaScript...to achieve this, you can use the 'NodeChecked'  clientside event of the UltraWebTree. Here is a sample code snippet which shows how to alert whenever a checkbox is checked or unchecked:

    function UltraWebTree1_NodeChecked(treeId, nodeId, bChecked){

    if (bChecked == true)

    alert(nodeId + " Node Checked");

    else

    alert(nodeId + " Node Unchecked");

    }

     

Reply Children