Just use:
$('#button1').click(
function(){
$('#myEltId span').css('border','0 none transparent');
});
Or if you prefer a long form:
$('#button1').click(
function(){
$('#myEltId span').css({
'border-width' : '0',
'border-style' : 'none',
'border-color' : 'transparent'
});
});
And I highly recommend reading the API for css()(see links below).
Literature:
source
share