I'm trying to create an Ajax function call where the argument q will be dynamically defined, and the $.get function will return either true or false depending on the data returned by the Ajax call.
<a href="any.php" class="idd" id="1">add score</a>
<a href="any.php" class="idd" id="2">add score</a>
<a href="any.php" class="idd" id="3">add score</a>
$(".idd").click(function(event) {
window.Eid=event.target.id;
//alert(window.Eid);
});
    $.get("getDetails.php",
        { q: window.Eid }, // I want this variable dynamic
        function(m) {
            $(".idd").click(function() {
            //var Eid=event.target.id;
            alert(m);
            if(m>0) {
                return false;
            } else {
                 return true;
               }
    });       
  });
 
     
    