Here is my php code where i am calling the jquery function:
php code
?>
<script>
$(function(){
alertMessage('<?php echo $response ?>');
});
</script>
<?php
...more php code...
and the function in javascript file seems like this
function alertMessage(variable){
$(function(e){
e.preventDefault();
myFunction: jNotify($(this).attr('class'),{
VerticalPosition : 'center',
HorizontalPosition : 'center'} );
});
}
Might be wrong way to do but how can I do this with php parameter in function call. Really Stucked..
Possibly like this Call jquery function from php page, but not working.