MXS&Vincene ─╄OvЁ &0000026─╄OvЁ MXS&Vincene MXS&Vincene ─╄OvЁ:今天很残酷,明天更残酷,后天很美好,但是绝大部分人是死在明天晚上,只有那些真正的英雄才能见到后天的太阳. MXS&Vincene ─╄OvЁ:We're here to put a dent in the universe. Otherwise why else even be here? 正文>>>>>
做个记录,以便需要拿取 <script type="text/javascript"> $(function(){ 第一种 $('input:radio').click(function(){ //alert(this.checked); // var domName = $(this).attr('name'); var $radio = $(this); // if this was previously checked if ($radio.data('waschec
Getting a radio element and it’s checked value Radio buttons in a form can be grouped together using the same name attribute, such that, if one of them is checked, all the others are automatically un-checked. Let us look at an example: <input type=&quo
转载自:http://www.jb51.net/article/113730.htm 由于项目的需求,要求radio点击两次后为取消状态,不方便修改为checkbox,可以用正面的方法实现. // jquery $('input:radio').click(function(){ //alert(this.checked); // var $radio = $(this); // if this was previously checked if ($radio.data('waschecked