jsonx
13 Sep 2009, 11:22 AM
Hi, I try to select first sibling td's id on click.
Ext.onReady(function(){
Ext.select("table").on("click", function(e,t){
e.stopEvent();
Ext.get(t).first(); //jQuery: $(e.target).siblings("td:first")
});
});
<table>
<tr>
<td id="foo">alfa</td><td>beta</td>
</tr>
<tr>
<td id="bar">alfa</td><td>beta</td>
</tr>
</table>
any help would be appreciated.
Ext.onReady(function(){
Ext.select("table").on("click", function(e,t){
e.stopEvent();
Ext.get(t).first(); //jQuery: $(e.target).siblings("td:first")
});
});
<table>
<tr>
<td id="foo">alfa</td><td>beta</td>
</tr>
<tr>
<td id="bar">alfa</td><td>beta</td>
</tr>
</table>
any help would be appreciated.