Smith Dwayne
Smith Dwayne

Reputation: 2807

jQuery Autocomplete control in DataTables input field

I have an inline Editable row.

On double clicking a DataTables row, the row is changed to editable. On hitting enter the edited row is saved and is restored as a table row. Now I need to change an editable input filed as Autocomplete Using a jQuery plugin. This is my fiddle.

Upvotes: 3

Views: 3714

Answers (1)

Gyrocode.com
Gyrocode.com

Reputation: 58870

CAUSE

You have forgot to include jQuery UI CSS and JS files.

SOLUTION

Corrected code for invoking Autocomplete widget is shown below.

$("#typ")
   .focus()
   .autocomplete({
      source: type1
   });

DEMO

See this jsFiddle for code and demonstration.

Upvotes: 1

Related Questions