function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.