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
With JQuery, you can find all the labels linked to the input with $(input).labels();
$('input').each( function() { var $labels = $(this).labels(); $labels.each(function(index, element){ alert($(element)); }); });