I\'m doing a validation with Jquery and need to get the $label from each element with their own label. Now the alert() gives med [object object]. The best thing for me here
This isn't a great example but you could use the prev function from jQuery which will find the previous label before your selected component.
prev
$(document).ready( function() { $('input').each(function(){ alert($(this).prev("label").html()) }); });
JSFiddle: http://jsfiddle.net/gQnaM/