How can I get the child-input value; from click event on its parent div-
Dynamic HTML
<div class="tableRowOdd">
<input type="hidden" value="28">
04/11/2012
</div>
JS
$('#historyContainer .tableRowOdd').live( 'click', function(e) {
// Here I want to get the hidden-input's value directly
// something like- $(this+'input').val()
console.log( $(this) );
});
Don’t want to do string manipulation from $(this).html()
Please help.
note that this will iterate through all inputs. if you want just the first: