Hello
I have a cross reference field with 2 fields, Tracking ID and Business Justification.

I need value of Business Justification field ("yyy") using custom object. Business requirement is such that I need this value before saving record. So I need this value as soon as I lookup the record. Id for this field - 15579
I was trying this -
<script type="text/javascript">
var fldId = 15579;
Sys.Application.add_load(function() {
var value = $('input[id*="f' + fldId + 'c"]').val();
var text = $('div[id*="f' + fldId + 'c"]').text();
alert(text);
});
</script>
but I get 'Undefined' in alert popup.
Please help.
Thanks
Lalit