Dojo and javascript: lightweight tooltip in onclick on anchor tab
问题 I have a dojo datagrid and I am using a formatter that puts, among other things, link in the cell. The formatter looks like this: var descshort = value[1].substring(0,220); return '<a href="'+ value[2] +'">'+value[0]+'</a><br /><div class="gridItemDescription">'+descshort+' <a href="#" onclick="showDesc();return false;">show more...</a></div>'; So you see I am only displaying the first 220 characters of value[1]. What I want to do now is show a dialog or tool tip when you click on the "show