How can i get the lookup value when user edit the field

How can i get the lookup value when user edit the field

for example when user select the stock symbol in one field it automatically update the company name in other field matching with the correct company name in other form.