Change image src in td tag on the Fly
Change image src in td tag on the Fly
I know this has probably been asked a thousand times, but I just can't seem to find the direct answer.
I'm opening a edit screen using oTable.fnOpen where the user can make their changes and then click submit.
At that time, I'm closing the Open form using oTable.fnClose but I'm not quite sure how to change the drop down image src back to the green "+" after closing the form.
I'm using the example http://datatables.net/release-datatables/examples/api/row_details.html.
I know the row, and I know the column..and I'm sure the answer is obvious but.....
How do I change the image src in column 0 row(n) to something else using jquery, datatables and javascript?
I'm opening a edit screen using oTable.fnOpen where the user can make their changes and then click submit.
At that time, I'm closing the Open form using oTable.fnClose but I'm not quite sure how to change the drop down image src back to the green "+" after closing the form.
I'm using the example http://datatables.net/release-datatables/examples/api/row_details.html.
I know the row, and I know the column..and I'm sure the answer is obvious but.....
How do I change the image src in column 0 row(n) to something else using jquery, datatables and javascript?
This discussion has been closed.
Replies
Sorry to waste the bytes