0

i have a show function in my test.php page , how may i call show() function in ajax instead url:test.php in following code

$.ajax({
  url: **'test.php'**,
  success: function(result) {
    alert(ersult);
  }
});

1 Answer 1

2

You cannot do this as jQuery knows nothing about php functions. An AJAX call is always performed to some server side script in which processing takes place and returns the result. So you could call this function in the test.php script.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.