i am new to ajax, i have a text file with number values
like ids.txt, here 12345 mapping value is 54321
12345,54321
23456,65432
34567,76543
45678,87654
56789,98765
this is my Html file
<html><body>
<INPUT TYPE="TEXT" NAME="text" SIZE="25" >
<button type="button" onclick="getId()">Submit</button>
<div id="myDiv"><h2></h2></div>
</body></html>
If i enter the value 12345 in the above textbox i should get its mapping value 54321 from ids.txt file and it should be displayed in div tag "myDiv"
Can anyone please help?
getIddo??