View Single Post
Skilled contributor
10Jan2011,17:10  
ManzZup's Avatar
try this cuz im more sure ab8 this
may be the onclick - > onClick may work
else try below
Code:
<input type="button" value="Fetch" id="btnFetch" name="btn_Fetch" onClick="fetchData(document.getElementById('txtPID').value);">
and in your logic or wutever the top code
you have missed a ';'

url=url+"?myName="+unameVal+"&myCode="+ucodeVal;

and juz a tip
when you use something like a [div] and need to use it in the code
do something like ele1 = document.getElementById('div1')
so you could call the options easily like ele1.style.wutever = wutever;