I have this below code
var tempqStr = $("#Qpanel" + item.data("question-id") + " > .questions")[0].innerText
This works fine in Chrome but in Firefox and IE I get an error inner text is undefined.Any suggestions on how to make that code work in all the browsers?