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
The problem is that you're trying to access the 'r' as an element. jPrompt is going to pass the text entered as 'r'.
$("a.foo").click(function(){ jPrompt("Type something:","","", function(r){ alert(r); //This will show the text entered. }); });