Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-424

jQuery ztag issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • 5.0.8
    • ZK Client Engine
    • None

      http://zkfiddle.org/sample/2kh66f1/1-jQuery-ztag-issue
      -----------

      Does our ztag support the selector rule of jQuery ?

      I mean currently the result of following code is 3,3,3 ;
      but it should be 1,1,1 in my expectation.

      -----------
      <zk xmlns:n="native">

      <n:div id="hi">
      <window>
      <textbox id="textbox1" />
      </window>
      </n:div>
      <n:div id="hi2">
      <window>
      <textbox id="textbox1" />
      </window>
      </n:div>
      <n:div id="hi3">
      <window>
      <textbox id="textbox1" />
      </window>
      </n:div>

      <script>
      zk.afterMount(function()

      { zk.log("jq(\"#h1 $textbox1\").size():" + jq("#hi $textbox1").size()); zk.log("jq(\"#h2 $textbox1\").size():" + jq("#hi2 $textbox1").size()); zk.log("jq(\"#h3 $textbox1\").size():" + jq("#hi3 $textbox1").size()); }

      );
      </script>

      </zk>

            jumperchen jumperchen
            TonyQ TonyQ
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: