Friday, July 4, 2014

Add data index to section using javascript

 <section class="q-panel q-question q-question-transition" data-validation="radio"
                    id="mysec" data-name="response-to-loss" data-optional="false" style="left: -130%;">

 $(document).ready(function () {
            var s = 0;
            $('#mysec').attr('data-index', s);
        });

No comments:

Post a Comment