#38 Add to FAQ: How do I get the value of a input form field?

Закрыто
9 лет назад открыта nero · комментариев: 0
Admin of lolg.it прокомментировал 9 лет назад

Originally at 2014-12-23T05:04:07Z by Hannes Hirzel closed at 2014-12-23T15:03:05Z

(From ML)

Question: Assuming I have a field with an id of #field1, how do I get the text value of it?

Answer:

   '#field1' asJQuery val

Note:

All Javascript methods in jQuery are available to you this way.

Multi parameter functions are then mapped like:

aQuery.sampleFunc (a,b,c);

aQuery sampleFunc: a and: b and: c.

The and: can be whatever. The only thing that matters is the first part of the keyword selector which has to match the function name.

Originally at 2014-12-23T05:04:07Z by Hannes Hirzel closed at 2014-12-23T15:03:05Z (From ML) Question: Assuming I have a field with an id of ``#field1``, how do I get the text value of it? Answer: '#field1' asJQuery val Note: All Javascript methods in jQuery are available to you this way. Multi parameter functions are then mapped like: aQuery.sampleFunc (a,b,c); aQuery sampleFunc: a and: b and: c. The ``and:`` can be whatever. The only thing that matters is the first part of the keyword selector which has to match the function name.
Войдите, чтобы присоединиться к обсуждению.
Нет меток
Нет этапа
Нет ответственного
1 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.