hello i need to call a javascript function into jquery and the function is from another file .. i don't know how to do it :/ this is in the jquery file
if ( slotNumber == cardNumber ) {
ui.draggable.addClass( 'correct' );
ui.draggable.draggable( 'disable' );
$(this).droppable( 'disable' );
ui.draggable.position( { of: $(this), my: 'left top', at: 'left top' } );
ui.draggable.draggable( 'option', 'revert', false );
correctCards++;
count ++;
//i want to add the function here
}
here's the js.js file
<script type = "text/javascript">
function fun() {
document.write("it's working");
}
</script>
anyone have any idea how to do it ?
fun()in second file.<script>tags. it should be just the bare js code. and you load those files via<script src="file.js"></script>