+ Start a Discussion
Abhishek_NewAbhishek_New 

How to show a input field value in javascript alert msg before saving?

I have a lookup field in my VF page which can populate data from its Master object to its child record.Now after I select the Master record in Lookup, I need to show the data in a Alert msg which will popup while clicking the save button ,"before saving the data".Currently it is showing null. As the record is not populated yet in child record.How to proceed ..Anyone Pls help!

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

You'll need to locate the HTML element and extract its current value.