i am storing element id in a variable globe and then applying css but its not working. if i apply css to 'img' then its works ,but when i am trying to apply with variable its not working . i have check console globe value contains id just css is not getting applied .
var selglobe=$('#' + globe);
$('#one').remove();
$(selglobe).addClass('anam');
$(selglobe).css("border","double");
$(selglobe).css("border-color","yellow");
console.log('HTML Globe value is '+globe);
EDIT:
var selglobe= $('#' + globe);
$('#one').remove();
selglobe.addClass('anam');
selglobe.css("border","double");
selglobe.css("border-color","yellow");
console.log('HTML Globe value is ' + globe);