css change to clicker words

master
Castro0o 5 years ago
parent a9fcc62ed2
commit 8b9ff87896

@ -164,10 +164,16 @@ $(document).ready(function(){
$('span').click( $('span').click(
function(){ function(){
alert($(this).text()); // alert($(this).text());
alert($(this).attr('class')); // alert($(this).attr('class'));
var selectedclass = $(this).attr('class');
$('span').css('font-size', '10pt').css('color','black'); // reset
$('span.' + selectedclass).css('font-size', '30pt'); //highting the select
}); });
}) })
</script> </script>

Loading…
Cancel
Save