SyntaxFix
Write A Post
Hire A Developer
Questions
$("#masterdiv > *").text("")
or
$("#masterdiv").children().text("")