Hi all. I have this very simple content:
<tr>
<td class="rowContent" id="902_1200_2008">United States</td>
</tr>
<tr>
<td class="rowContent" id="104_500_2008">Canada</td>
</tr>
When user clicks in any row i'll want to display the details about that row. I'm using this but without success:
$('.rowContent').click(function(){
$.get("getCountryContent.cfm", { u: this.id },
function(data){
var $conteudo = trim12( data );
alert("Data Loaded: " + trim12( data ));
$( '#' + this.id ).html(trim12( data )).append();
});
});
This ajax response is an html table...
What's wrong?
Cheers
Marco Antonio
<tr>
<td class="rowContent" id="902_1200_2008">United States</td>
</tr>
<tr>
<td class="rowContent" id="104_500_2008">Canada</td>
</tr>
When user clicks in any row i'll want to display the details about that row. I'm using this but without success:
$('.rowContent').click(function(){
$.get("getCountryContent.cfm", { u: this.id },
function(data){
var $conteudo = trim12( data );
alert("Data Loaded: " + trim12( data ));
$( '#' + this.id ).html(trim12( data )).append();
});
});
This ajax response is an html table...
What's wrong?
Cheers
Marco Antonio
No comments:
Post a Comment