samedi 3 décembre 2016

Get checkbox selected value from list view

Below is my code,where i am binding weekdays inside the ul, i am using listview and template,its working fine,but i need to get the value when checkbox is selected need help, checkbox can be selected multiple so i can have multiple values

   <div data-role="view">
    <ul data-role="listview" data-style="inset" data-template="script-id" data-source="listData"></ul>
    <script id="script-id" type="text/x-kendo-template">
        <div>
            <input type="checkbox" class="checkclass"   />
             <h3 class="checkclass">#: week #</h3>

        </div>
    </script>
    </div>

//data to bind list template
  var listData = [{ week: 'Monday' },
               { week: 'Tuesday' },
               { week: 'Saturday ', },
               { week: 'Sunday', }]




Aucun commentaire:

Enregistrer un commentaire