In my html form, I have an input box with name “contact.area”.
<form name = “contactinf”>
<Input type =”text” name = “contact.area” value =”100”>
</form>
Now I can’t access the text box value through java script, since the “.” Character makes the script to think ‘contact’ alone as an object.
function myfunction()
{
alert(document.contactinf.contact.area.value);
}
As per the requirements, I cannot change the name of the text box.
Is there any chance for me to fetch the value
<form name = “contactinf”>
<Input type =”text” name = “contact.area” value =”100”>
</form>
Now I can’t access the text box value through java script, since the “.” Character makes the script to think ‘contact’ alone as an object.
function myfunction()
{
alert(document.contactinf.contact.area.value);
}
As per the requirements, I cannot change the name of the text box.

Is there any chance for me to fetch the value

Comment