简体   繁体   中英

Form submit not working in bootstrap custom radio buttons

I am using bootstrap3 for my site..I have to implement custom radio buttons. I implemented custom radio buttons and styling is looking fine using bootstrap3 button styles. The working demo is here But, on submitting the radio button which is checked is not passing through the form which can be seen on clicking submit in demo. I am always getting 'undefined'.The radio button group itself is not submitting it's value.

Though radio buttons are hidden the form values should submit..But not sure why it is not submitting hidden radio button values..

Use this instead..

$('input[name=year]:checked').val()

Demo: http://www.bootply.com/123377

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM