Ci sto sbattendo la testa da 5 ore provando in modi diversi
Volevo provare prima usando un DIV perche trovo piu esempi in rete rispetto al TR,
ma non riesco a farlo andare.
codice:
<!doctype>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
jQuery(function(){
jQuery('div').click(function(){
var contenuto_lista = this.id;
$.ajax({
type: "POST",
url: "asta_dettaglio.php",
data:contenuto_lista,}
});
});
</script>
</head>
<body>
<form name="asta" action="asta_dettaglio.php" method='post' >
<input value="asta" style="display: none"/>
</form>
<div id="1" style="cursor:pointer">1</div>
<div id="2" style="cursor:pointer">2</div>
<div id="3" style="cursor:pointer">3</div>