Hi guys, This might sound a little dumb, but can you please point out why in the following script 'firstValue' is undefined and 'secondValue' is as needed, i.e. 4.
<div >
<input class="feedback-selected" type="hidden" value="4" />
</div>
<script type="text/javascript">
var firstValue = $(this).find('.feedback-selected').val();
var secondValue = $('.feedback-selected').val();
alert(firstValue);
alert(secondValue);
</script>
I am sure I am not using the find function as it should be.