I\'m working on changing prompt() to jPrompt() since IE blocks prompt() from running. The problem is $(this) no longer works correctly because jPrompt() doesn\'t return a v
Try this:
$("a.foo").click(function(){ var that = this; jPrompt("Type something:","","", function(r) { $(that).text(r); } }