update value in input fields with fnUpdate()

update value in input fields with fnUpdate()

PROpheTPROpheT Posts: 12Questions: 0Answers: 0
edited December 2011 in General
Hi,

I have table with input fields in the columns. How can I update only input value with fnUpdate() ?

thanks.

Replies

  • PROpheTPROpheT Posts: 12Questions: 0Answers: 0
    so, what I must to change in fnUpdate() function? :)
  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    No - fnUpdate would update the HTML inside the element (so it is actually possible if you want to set the 'value' attribute), but what I would suggest is just doing it exactly the same way as if you weren't using DataTables - i.e. $('#my_input').val('whatever'); (or some other suitable selector).

    Allan
  • PROpheTPROpheT Posts: 12Questions: 0Answers: 0
    But without fnUpdate, I am not able to update input fields in hidden columns. Or?
This discussion has been closed.