jQWidgets Forums

jQuery UI Widgets Forums Editors CheckBox, RadioButton How to name RadioButtons for processing

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • mr_putersmit
    Participant

    In standard html, you would identify your inputs using name=””. In jqwidgets, how is that same effect achieved for processing by php. In a div for example you cannot use the name attribute as it is restricted to form elements. The reason I ask, is that jquery validator relies on the ‘name’ attribute for validation and does not recognize id’s. Is there a way round this.

    Sorry if it is such a nOOb question, but I need to be sure.

    Thanks


    Dimitar
    Participant

    Hello mr_putersmit,

    You can set the name attribute of div elements and that is how you can achieve your goal. Please check out the PHP demo Login Form to see how to submit information from a jqxCheckBox (also a div).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    mr_putersmit
    Participant

    Hi Dimitar
    Coming back to naming, this is what the w3.org validator returns:

    Line 6, Column 41: Attribute name not allowed on element div at this point.
           <div name="mydiv" class="myclass"></div>

    Also, if I include a name in my div, jquery.validator dosen’t recognise it. Does this mean that I have to use jqwidgets validator or is there a workaround. Thanks


    Dimitar
    Participant

    Hi mr_putersmit,

    As evidenced by the demo, there are no issues when a div’s name is set. You can also use jqxValidator to validate radio buttons.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.