Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  timo75 11 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • data values for button group #20584

    timo75
    Participant

    I’d like to use a jqxButtonGroup type radio instead of normal radio buttons, but I wonder how it’s possible to assign values to the buttons for retrieving them later by js?

    The only attribute that is kept when the button tags are turned into divs seem to be the IDs, but I’d rather use e.g. HTML5 data-* attributes for the values. What’s the best practice here?

    data values for button group #20600

    Peter Stoev
    Keymaster

    Hi,

    You can loop through the Buttons and assign custom attributes after creating the widget. Other option is to use the widget’s API to handle selections.

    Best Regards,
    Peter Stoev

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

    data values for button group #20631

    timo75
    Participant

    Yes, that’s certainly possible. But I would have preferred to have the values in the original markup and keep the JS code rather generic. Having the data-* attributes taken over would be nice. Maybe an idea for the future 🙂

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

You must be logged in to reply to this topic.