php点击按钮变文字,点击按钮文字变成input框,点击保存变成文字的实现
下面為大家帶來一篇點擊按鈕文字變成input框,點擊保存變成文字的實現代碼。內容挺不錯的,現在分享給大家,也給大家做個參考。
點擊按鈕文字變成input框,點擊保存變成文字的實現代碼
點擊按鈕文字變成input框,點擊保存變成文字table{ text-align: center; font-size: 14px;}
table>thead>tr>th{ font-weight: normal;}
.text-right{ padding-right:73px; text-align: right;}
.text{ width: 50px; height: 30px; border: 1px solid #ddd; text-align: center;}
品名件數
iPhone6s2小米55修改
function change(obj){
var xg=$(obj).html();
if(xg=='修改'){
$('.edit').each(function(){
var old=$(this).html();
$(this).html("");
})
$(obj).html('保存');
}else if(xg=='保存'){
$('input[name=editname]').each(function(){
var old=$(this).html();
var newfont=$(this).parent('td').parent('tr').children().find('input').val();
$(this).parent('td').html(newfont);
})
$(obj).html('修改');
}
}
以上就是本文的全部內容,希望對大家的學習有所幫助,更多相關內容請關注PHP中文網!
相關推薦:
總結
以上是生活随笔為你收集整理的php点击按钮变文字,点击按钮文字变成input框,点击保存变成文字的实现的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 12 c for. oracle rac
- 下一篇: oracle大批量数据统计,加速Orac