Re: php / JS / DOM question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Kirk

jonathan <news_php@xxxxxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux