Hi,
I've this html page:
<tr><th><label for="id_form-1">Carriera:</label></th><td><textarea id="id_form-1" rows="10" cols="40" name="form-1"></textarea></td></tr>
<tr><th><label for="id_form-2">Corsi:</label></th><td><textarea id="id_form-2" rows="10" cols="40" name="form-1">aaaaaaaaa</textarea></td></tr>
ecc......
I'm trying to toggle the textarea relative to specific label, like this:
$(document).ready(function() {
$('textarea').hide();
$('label').click(function() {
var currentId = $(this).attr('for');
$('#currentId').toggle(400);
return false;
});
});
but this don't work...
thanks,
Alfredo