0
发布数据我有一个表,如下所示:如何JSON格式从表使用jQuery
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
// I'd like a suggestion here
});
});
</head>
<body>
<table>
<tr><th>Name</th><th>Email</th></tr>
<tr><td>abc</td><td>[email protected]</td></tr>
<tr><td>xyz</td><tr><td>[email protected]</td>
</table>
<button>click here</button>
</body>
</html>
我想点击该按钮后,它应该创建一个JSON对象conataining中的所有数据表使用jQuery将它发送到另一个URL。
您需要发送什么样的数据? – SarathSprakash 2015-03-02 10:52:06
改进了格式 – 2015-03-06 21:17:21