<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" src="jquery.js"></script>
<script language="javascript">
var price;
var quant;
var total;
var tds = [];
$(document).ready(function() {
$("#some_id td").each(function(index) {
tds[index] = $(this).text();
}).fadeOut();
price = tds[0];
quant = tds[1];
total = tds[2];
});
</script>
</head>
<body>
<table>
<tr id="some_id"><td>some value 1</td><td>some value 2</td><td>some value 3</td></tr>
</table>
</body>
</html>
|