68
rated 0 times
[
74]
[
6]
/ answers: 1 / hits: 31736
/ 11 Years ago, thu, october 17, 2013, 12:00:00
I have the following set of checkboxes:
<ul class=checkbox_list>
<li><input name=mensajes[receptores_list][] type=checkbox value=5 id=mensajes_receptores_list_5 /> <label for=mensajes_receptores_list_5>Carlos (Admin)</label></li>
<li><input name=mensajes[receptores_list][] type=checkbox value=1 id=mensajes_receptores_list_1 /> <label for=mensajes_receptores_list_1>Jorge (Admin)</label></li>
<li><input name=mensajes[receptores_list][] type=checkbox value=3 id=mensajes_receptores_list_3 /> <label for=mensajes_receptores_list_3>Marisa (Admin)</label></li>
<li><input name=mensajes[receptores_list][] type=checkbox value=6 id=mensajes_receptores_list_6 /> <label for=mensajes_receptores_list_6>Christian (Apuntes)</label></li>
<li><input name=mensajes[receptores_list][] type=checkbox value=4 id=mensajes_receptores_list_4 /> <label for=mensajes_receptores_list_4>Julieta (Contable)</label></li>
<li><input name=mensajes[receptores_list][] type=checkbox value=2 id=mensajes_receptores_list_2 /> <label for=mensajes_receptores_list_2>Vicky (Contable)</label></li>
</ul>
Using javascript, how I can access the text of each item. For example, for the element with id = mensajes_receptores_list_5 I want to get the text Carlos (Admin)
More From » jquery