this javascript not run in Internet Explorer 8 and Google Chrome?

Tushar M

New member
I have created this function to generate dynamic textbox onclick event of combobox value ::

function generateRow()
{
document.getElementById('txtother').style.display = '';
}

this is my combobox syntax ::

<option onclick="generateRow()" name="other">Other</option>

It will create textbox ::
<input type="text" size="8" id="txtother" style="width:70px; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif; display:none" name="textother"/>

The problem is that,when i click on combobox value it will generate textbox only in Firefox not in any other browser,means any other browser not support this javascript.

Is there any other code to browser support for this javascript

i have also enable javascript from settings of all browser.
 
Back
Top