I have a js file with Jquery function now i have to call that function on document ready and inside another PHP file i tried below codes it worked for PHP file but for the JS file it is saying $.test is not a function
jq.js file for this error message was $.test is not a function.
$(document).ready(function(){
$.test();
$.test = function(){
alert('HELLO WORLD');
}
});
add.php file For this worked.
.....SOME PHP CODES HERE ....
<td class="del"><span class="fa fa-times"></span></td>
<script>
$('.delI').unbind().click(function(){
$.test();
});
</script>
I have to call this test() function inside the same JS file and in another PHP file too please give me a solution.. thanks.