jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput why use div?why not use input?

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • why use div?why not use input? #17844

    mjohn
    Member

    Hi.
    i fund your jqxDateTimeInput Widgets is good. but is bad to use div element.

    < div id=’jqxWidget‘>
    div>

    $(“#jqxWidget”).jqxDateTimeInput({width: ‘250px’, height: ’25px’, theme: theme});

    all Widgets should use html’s form input element, then i can use jquery or other validator javascript library.
    but you use div, so this is a bad idea.

    Thanks!

    why use div?why not use input? #17846

    Peter Stoev
    Keymaster

    Hi mjohn,

    The reason the jqxDateTimeInput is created from DIV instead of from simple INPUT is that you cannot Add additional HTML Elements to INPUT tags. I do not see a problem of using it with Validation plug-ins like jqxValidator. jqxDateTimeInput has INPUT element and also works with FORMS.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.