formular na strankach
Na
navrhpcb na gmail.com
Pondělí Duben 8 08:06:34 CEST 2013
Input muze mit jen 1 atribut, takze byste to musel zase nejak separovat na strane serveru, pokud se nepletu?
Odesláno z iPadu
26. 3. 2013 v 11:01, Tom Meinlschmidt <hw na meinlschmidt.org>:
> bud pouzijete jquery (nejjedodussi volba)
>
> if ($("#lastname").is(':focus')) {
> alert("hello");
> }
>
> nebo pokud chcete cisty DOM, tak si udelate funkci, ktera u kazdeho <input> pri eventech
> onFocus a onBlur nastavi/zrusi atribut u <input>, ktery nasledne muzete precist a zkontrolovat
>
> tm
>
> On Mar 26, 2013, at 8:45 , Martin Záruba <swz na volny.cz> wrote:
>
>> Dik. Jeste bych mel jeden dotaz: Ve formulari mam udalost onsubmit pro
>> kontrolu zadanych hodnot. Dalo by se nejak zjistit, ve ktere polozce <input>
>> stal kurzor pri stisknuti tlacitka Submit?
>> Martin Zaruba
>> ----- Original Message -----
>> From: "Jaroslav Meduna" <meduna na mikroklima.cz>
>> To: "'HW-news'" <hw-list na list.hw.cz>
>> Sent: Tuesday, March 26, 2013 7:10 AM
>> Subject: RE: formular na strankach
>>
>>
>> <form name="m">
>> ...
>> <script>
>> document.m.b.focus();
>> </script>
>> ...
>> -----Original Message-----
>> From: hw-list-bounces na list.hw.cz [mailto:hw-list-bounces na list.hw.cz] On
>> Behalf Of Martin Záruba
>> Sent: Tuesday, March 26, 2013 7:00 AM
>> To: HW-news
>> Subject: OT: formular na strankach
>>
>> Jak dosahnout, aby ve formulari na webu
>> <form>
>> <input name="a">
>> <input name="b">
>> <input name="c">
>> ...
>> </form>
>> se umistil kurzor na pozadovany input (treba na input "b")?
>>
>> Martin Zaruba
>> _______________________________________________
>> HW-list mailing list - sponsored by www.HW.cz Hw-list na list.hw.cz
>> http://list.hw.cz/mailman/listinfo/hw-list
>>
>> _______________________________________________
>> HW-list mailing list - sponsored by www.HW.cz
>> Hw-list na list.hw.cz
>> http://list.hw.cz/mailman/listinfo/hw-list
>>
>> _______________________________________________
>> HW-list mailing list - sponsored by www.HW.cz
>> Hw-list na list.hw.cz
>> http://list.hw.cz/mailman/listinfo/hw-list
>
> --
> ===============================================================================
> Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
>
> www.meinlschmidt.com www.maxwellrender.cz
> ===============================================================================
>
> _______________________________________________
> HW-list mailing list - sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
Další informace o konferenci Hw-list