Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap-timepicker class does not allow to jquery to select the timepicker element #151

Open
monterey01 opened this issue Sep 1, 2013 · 0 comments

Comments

@monterey01
Copy link

Sample code

    alert($("#" + jquerySelectorEscape("dayAndTimesOpenAndClosed.openCloseTimes[7].openTime")).attr('id')); returns undefined for below html/javascript

HTML/JAVASCRIPT

    <label for="dayAndTimesOpenAndClosed.openCloseTimes0.openTime">Open
        Time</label>
    <div class="input-append bootstrap-timepicker ">
        <input id="dayAndTimesOpenAndClosed.openCloseTimes[7].openTime"
            name="dayAndTimesOpenAndClosed.openCloseTimes[7].openTime"
            class="input-small" type="text" value="6:00 AM" /> <span
            class="add-on"><i class="icon-time"></i></span>



        <script type="text/javascript">
            $(
                    "#"
                            + jquerySelectorEscape("dayAndTimesOpenAndClosed.openCloseTimes[7].openTime"))
                    .timepicker();
        </script>
    </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant