April 2, 2012
Dojo equivalent to jQuery.text function?
Question by Derek
What is the Dojo equivalent to $("...").text("asdf")
and $("...").text()
?
Also is there a wiki or site that provides dojo equivalents of jQuery functions?
Answer by Starx
Use can do this as
dojo.query('#yourdiv')[0].lastChild.textContent = 'text';
var text = dojo.query('#yourdiv')[0].lastChild.textContent