How to use Callback Before Function in JQuery

In this article I am going to explain about Callback before function in jquery.
  • 1887

Query Callback Before function

jquery callback function use for display an message before any action. When event occurs then firstly a message will be display after that action will be complete.



    alert("Your message");


In this example when you click on button firstly message will display then after code will be execute.



    <script type="text/javascript" src="jquery.js"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            $("button").click(function () {


                alert("This heading is now hidden");







        click me</button>


        Click Button For Hide






You may also want to read these related articles: here
Ask Your Question 
Got a programming related question? You may want to post your question here
© 2020 DotNetHeaven. All rights reserved.