JSFiddle - React, Tailwind, and code Playground
HTML
<span id="g">plus.google</span><br/>
<span id="fb">facebook</span>
JavaScript
$("span").click(function(){
alert($(this).text());
$("span").not($(this)).unbind('click');
});
<span id="g">plus.google</span><br/>
<span id="fb">facebook</span>
$("span").click(function(){
alert($(this).text());
$("span").not($(this)).unbind('click');
});