cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
civilgb
Nintex Newbie

Get innerHTML from element by ClientID variable

I set for an element MultiLine Textbox ClinetID variable and I'm trying to get inner HTML text from that control. But functions 

var txtTitle = NWF$('#' + MAAgreementClientID).find('div').innerHTML;

and

var txtTitle = NWF$('#' + MAAgreementClientID).text();

return me empty strings. 

How Can I get inner HTML text from control MultiLine Textbox by JavaScript function?

Labels: (1)
0 Kudos
Reply
1 Reply
Automation Master
Automation Master

Re: Get innerHTML from element by ClientID variable

Hi,

 

you can try to lookup DOM structure inside Developer Console. I am doing it the other way round - I am setting CSS class for the control and then using that class to reference my control, e.g.:

NWF$("textarea.TEXTAREA_CLASS").text()

and for the rich text:

NWF$("div[class='TEXTAREA_CLASS']").html();

Regards,

Tomasz

0 Kudos
Reply