Friday, November 30, 2012

Jquery - How to know any changes happen in the form

At first, I thought initially its a easier task, to find a change happen in a aspx form (Page) . And to my worst there are atleast 30 text box 6 combo and few more ajax grids. I cannot write page full of javascript, whether any changes happened in any of the control.

It took me another 2 days to get find the solution with Jquery. and amazing just 2 lines of code :)

        //To check if there is any changes happening in the form/page
        $(document).ready(function () {
            $('.bodyContainer').change(function () {
                // DO YOUR CODE HERE
                    }
                }

Few lines above has solved my problem.


No comments:

Post a Comment