AnsweredAssumed Answered

how to get the read only field value to the java script function

Question asked by CodeGeek on Oct 24, 2017
Latest reply on Nov 9, 2017 by CodeGeek

I'm trying to get the read-only field value to the javascript function tried different options but nothing seems to be working.

please let me know if there is a better approach.

 

 

Edit mode

 

DOM Structure

 

<td id="df_0_6" pdmqa="risk" style="font-size:0.7em;" class="detailro" align="left" valign="top">
Major
</td>

 

 I'm trying to fetch the risk value on 'onblur' event in edit mode of the detail page.

The code that I'm using is the below

 

jq('input[pdmqa="risk"]').text()
jq('input[pdmqa="risk"]').html()
jq('input[pdmqa="risk"]').val()

however the all calls returned  'empty'  value. how to get the risky value?

 

Thanks

Venkat

Outcomes