I was working on a project which allows the user to update the text in an html table. The only thing is, I need to know which columns of the table is being edited to have the program act accordingly. I have tried a few things, but none of the solutions are practical, and are too slow. Does anyone know of a good way to go about this? Any help is appreciated.
Share
I assume you are using input or textarea tags inside the table cells ?
If so you can use the jquery library to bind a handler to the ‘keyup’ event generated, inside that handler you can query attributes of the element that raised the event. Use an algorithm to set unique ids or classes for row and column helps you to identify the position you are looking for. Then you can make an ajax request to the server holding the computed values.