Hello,
I am troubleshoot errors with my code, however, it is not showing up in the console log. Can you please take a look and let me know if anything stands out for why this may not be showing up in the log?
Thanks for your help!
I am troubleshoot errors with my code, however, it is not showing up in the console log. Can you please take a look and let me know if anything stands out for why this may not be showing up in the log?
Thanks for your help!
Code:
<script>
definitions = <?= json_encode ($def); ?>
function refreshDefinition( stat_id ) {
var definition = definitions[ stat_id ];
var div = $('<div id="definition"><span class="statdefinition">'+definition.name+': </span>'+definition.definition+'</div>');
$('#definition').replaceWith( div );
}
$('input[type=checkbox]').change( function(){
if ( ! $(this).is(':checked') )
return false;
var stat_id = $(this).attr( 'id' ).replace( /checkbox_/, '' );
refreshDefinition( stat_id );
} );
</script>
Comment