Witam,
wcześniej pracowałem na innych bibliotekach niż jQuery, a teraz przerzuciłem się na nią i mam pewien problem.
Mam formularz (przykład - specjalnie podałem wartości w value):
<form id="proba">
<table>
<tr>
<td><input type="text" name="login" value="login" /></td>
<td><input type="password" name="pass" value="pass" /></td>
</tr>
<tr>
<td><input type="hidden" name="ukryty" value="hidden" /></td>
<td><input type="button" name="przycisk" value="button" /></td>
</tr>
<tr>
<td><input type="checkbox" name="klik" value="y" /></td>
<td>
<input type="radio" name="sel1" value="y" />
<input type="radio" name="sel2" value="y" />
<input type="radio" name="sel3" value="y" />
</td>
</tr>
</table>
</form>
Chcę pobrać atrybuty name i value (tylko wypełnione lub zaznaczone), ale zawierające się w formie !
Próbowałem na różne sposoby:
- $("form#proba").each()
- $("form#proba > *")
- $("form#proba > input")
- $("form#proba > :input")
- .children()
Jakbym nie robił to nigdy nie chce mi pobrać tych inputów. Bardzo proszę o pomoc, jak pobrać wszystkie (lub określone) elementy z nadrzędnego elementu.