Select name "example_length" being submitted (change to id?)

Select name "example_length" being submitted (change to id?)

frankindelicatofrankindelicato Posts: 1Questions: 0Answers: 0
edited November 2012 in DataTables 1.9
The select box "example_length" is being submitted with the form data because it is named. Can you change the name to an Id so it wont be
submitted?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You could use a little jQuery to remove the name: `$('#example_length').removeAttr('name')` to do that. Unfortunately, because it is already there, and I know of several cases where it is required, I can't remove it from DataTables core - but you can certainly change your own copy, or as I say, manipulate the DOM.

    Allan
This discussion has been closed.