[ad_1]
I think this should work, if I don’t missunderstand you.
$("#awayName").click(function() {
var name1=prompt("Enter a new name for Away Team, Please!");
$(this).text(name1);
});
[ad_2]
solved How do use multiple jQuery events with one id?