I have a textbox with id main_category_lan1 as below.
<input type="text" name="main_category_lan1" id="main_category_lan1" Value="Hello"> And I have a link in the same page as below.
<a href="javascript: void(0)" onclick="popup('http://translate.google.com/#en/ta/'+document.getElementById('main_category_lan1').value"> Translator </a> I want to append the textbox value to the "Onclick link" while clicking the link...
Expected output onclick is ,
<a href="javascript: void(0)" onclick="popup('http://translate.google.com/#en/ta/Hello').value"> Translator </a>