For example ,
Consider i have the below code in a div
var qty = document.getElementsByName('subForm_prodQtyForm')[0].value;
var rate = document.getElementsByName('subForm_rateForm')[0].value;
I need Javascript code to replace the above code as below code . How to replace ??
var qty = document.getElementsByName('subForm_prodQtyForm_1')[0].value;
var rate = document.getElementsByName('subForm_rateForm_1')[0].value;
_1to the string?subForm_rateFormthere as well? From a logical standpoint the attempted code makes no sense at all. If he just wants to append_1todocument.getElementsByName('subForm_prodQtyForm')[0].value, then that should be the question.