Change image src in td tag on the Fly

Change image src in td tag on the Fly

jmashorejmashore Posts: 2Questions: 0Answers: 0
edited May 2012 in General
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?

Replies

  • jmashorejmashore Posts: 2Questions: 0Answers: 0
    never mind, I got the answer. I needed to assign a id to each in the column I wanted to update and then reference by : $('td#'+ref).html("");

    Sorry to waste the bytes
This discussion has been closed.