Ravi Kumar-26 wrote:
> 
> On 7/25/07, chengas123 <[EMAIL PROTECTED]> wrote:
>> I had an HTML input I was accessing in script as follows:
>>    document.inputForm.city.value
>> I replaced it with a Struts autocompleter and cannot access it in that
>> manner anymore. 
> 
> Hey ,
>  I think it is not text filed it is select box. so try to access using
> input
> type as select
> Thanks
> Ravi
> 


I don't understand.  I can access a select from JavaScript the same exact
way I would access a text box.  The real problem is that I can't figure out
if there is a named element on the page to access.  If I do
alert(document.inputForm.city) then I get a popup box that says undefined.  
So the problem isn't in the manner in which I'm accessing it, but that the
element does not even exist.  Do I need to change something in my Struts tag
to make the element accessible from script?

Thanks,
Ben


-- 
View this message in context: 
http://www.nabble.com/-S2--Accessing-autocompleter-value-from-JavaScript-tf4138749.html#a11781657
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to