---
title: " jquery示例可修改的表格"
author: "corangecn"
date: "2014-11-11T09:29:19Z"
tags: []
categories: ["Web前端"]
slug: "jquery"
draft: false
lastmod: "2014-11-11T09:29:19Z"
id: 2154415
url: "https://corangecn.iteye.com/blog/2154415"
---

[![http://www.corange.cn//uploadfiles/20111008224132_68905.jpg](http://www.corange.cn//uploadfiles/20111008224132_68905.jpg)](http://www.corange.cn//uploadfiles/20111008224132_68905.jpg)

演示地址:[http://www.corange.cn/demo/3787/index.html](http://www.corange.cn/demo/3787/index.html)   
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;  
&lt;html&gt;  
&lt;head&gt;  
&lt;title&gt;jquery示例可修改的表格&lt;/title&gt;  
&lt;script src="http://www.google.com/jsapi" type="text/javascript"&gt;&lt;/script&gt;   
&lt;script type="text/javascript"&gt;   
google.load("jquery", "1.2.6");   
&lt;/script&gt;   
&lt;script type="text/javascript" src="js/jqueryEditUseBlur.js"&gt;&lt;/script&gt; 

&lt;/head&gt;  
&lt;body&gt;  
&lt;table border="1"&gt;  
&lt;tbody&gt;  
&lt;tr&gt;  
&lt;td class="editTD"&gt;  
&lt;input class="status" name="product.status" value="1" type="hidden"&gt;  
&lt;div class="editText"&gt;有货&lt;/div&gt;  
&lt;/td&gt;  
&lt;td class="editTD"&gt;  
&lt;input class="status" name="product.status" value="2" type="hidden"&gt;  
&lt;div class="editText"&gt;缺货&lt;/div&gt;  
&lt;/td&gt;  
&lt;td id="other"&gt;  
5678  
&lt;/td&gt;  
&lt;td&gt;  
&lt;div style="display: none"&gt;  
&lt;select id="selectStatus" name="a" &gt;  
&lt;option &gt;

&lt;/option&gt;  
&lt;option id="1" value="1"&gt;  
有货  
&lt;/option&gt;  
&lt;option id="2" value="2"&gt;  
缺货  
&lt;/option&gt;  
&lt;/select&gt;  
&lt;/div&gt;  
&lt;/td&gt;  
&lt;/tr&gt;  
&lt;/tbody&gt;  
&lt;/table&gt;  
&lt;/body&gt;  
&lt;/html&gt; 

原文地址:[http://www.corange.cn/archives/2011/10/3787.html](http://www.corange.cn/archives/2011/10/3787.html)