ok, I have a VF page. and some inputField as well as outputText, and I wanted to do some front end calculation on these data while a button is clicked. on the outputText, for example I have:
<apex:outputText id="processor_name" value="{!ProcessorName}" label="Processor" />
here is the button:
<button type="button" onclick="executeCalculation()">Calculate</button>
And here is the jquery
function executeCalculation(){
alert($j("[id$='num_locations']").val());
}
the outputText field is displaying data from database just fine.
the alert message is just blank, not showing anything. if I change the script to
function executeCalculation(){
$j("[id$='num_locations']").hide();
}
the field will hide just fine. I'm not sure why I can't get the data to display in the alert.