<script type="text/javascript"> $('input[name^="jshop_attr_id"]:radio').change(function(){ alert(this.id) alert($(this).next('label').text()) }); </script>