I have a list of items, which have inputs that are hidden but all contain different values, How do i get the value from each li
<ul class="happiness">
<li><input type="hidden" value="guid-xxxx0"/> Happy </li>
<li><input type="hidden" value="guid-xxxx1"/> Sad </li>
<li><input type="hidden" value="guid-xxxx2"/> I dont know </li>
</ul>
Is this the right way to do it?
$(".happiness").click(function(){
var value = $(this).find("li input").val();
});