Help needed in javascript validation on gridview control with check box using jquery

Help needed in javascript validation on gridview control with check box using jquery

I have a question posted on asp.net forum
http://forums.asp.net/t/1536752.aspx
i.e

I have a grid in which i have 4 columns
checkbox, myid, mychildid, myidStatus
All cotrols except checkbox are filled in templated label controls


Below the grid i have two buttons
CreateChild, DeleteChild





When I click CreateChild I wanted to have a javascript validation function that if there is a checkbox checked in a row which already have mychildid field filled then it javascript validation alert. [as multiple child are not allowed]

When I click DeleteChild I wanted to have a javascript validation function that if there is a checkbox checked in a row which doesn't have mychildid filled then it throws javascript validation alert.

Please suggest me any solution for above problem using jquery