範例請參考文章留言時的button


//找出所有<button class="btn" >btn</button>$.each($('button.btn'),function(){  $(this).removeClass('btn');  $(this).addClass('ui-state-default ui-corner-all');  $(this).hover(    function() { $(this).addClass('ui-state-hover'); },     function() { $(this).removeClass('ui-state-hover'); }  );});

創作者介紹
創作者 gan068 的頭像
gan068

gan068

gan068 發表在 痞客邦 留言(0) 人氣( 98 )