Set a CSS class on an ASP.NET RadioButtonList ListItem

后端 未结 5 784
一整个雨季
一整个雨季 2020-12-17 08:41

Is there any way to set a CSS class on an input item in a radio button list? I\'d like to reference these form values by class in jQuery.

Given an ASP.NET RadioButto

5条回答
  •  猫巷女王i
    2020-12-17 09:10

    untested

    $('.myclass input:radio').each(function() {
            this.css({'style-name':'style-value'})
    )};
    

    once the list is rendered, you can possibly manipulate the css client side using the above statement.

提交回复
热议问题