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);
});
solved How do use multiple jQuery events with one id?
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);
});
solved How do use multiple jQuery events with one id?