You are here: Re: [PHP] php / JS / DOM question « PHP « IT news, forums, messages
Re: [PHP] php / JS / DOM question

Posted by Kirk.Johnson on 12/29/05 23:57

Add the "value" property: document.forms['query_form'].elements['q']
..value.

Kirk

jonathan <news_php@arclocal.com> wrote on 12/29/2005 02:45:23 PM:

> <form name="query_form">
> <input type="text" name="q"></input>
> <input type="button" onclick="drawImg('A',document.forms
> ['query_form'].elements['q']);" value="Search"></input>
> </form>
>
> When the user clicks on the button, I want the text that is in input
> elment 'q' to be sent to the Javascript function drawImg but when I
> debug it via alerts, it appears to be NULL.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация