I have set up a FormX control for inline editing of records. The form works as expected except for one small issue.
When you click on an inline edit button, the edit form appears over the existing list of records.The issue is that if you click on a second edit button in the list, without first submitting a change to the record, or canceling out of the edit, a second edit form appears over the list, and on and on.
I thought no big deal, I will just add some jQuery to the OnClientClick property of the edit button to hide the siblings of the button being clicked. I just can't get this to work. I can however, get a jQuery Alert to pop up when the button is clicked.
Thinking my jQuery was a little rusty, I set up a simple xmod temple with a FormX control in it to test my code (see code fiddle below).
While my code to toggle the elements css class works, the code to hide the element does not. I believe the code to be correct, so either certain jQuery functions do not work within FormX controls, I am doing something wrong, or I am going about this the wrong way.