diff --git a/CHANGELOG.md b/CHANGELOG.md
index cbaffcd..b1df4be 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+v1.2.4 (2016/06/17)
+-------------------
+- Changed the options to allow 'select', 'text', and 'textarea' input, the fourth parameter becomes the number of rows if textarea, straight json for select options
+
v1.2.3 (2015/04/20)
-------------------
- Added 'bower.json' to use this package manager
diff --git a/README.md b/README.md
index cb70103..619fac0 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# jQuery-Tabledit v1.2.3
+# jQuery-Tabledit v1.2.4
Inline editor for HTML tables compatible with Bootstrap.
diff --git a/jquery.tabledit.js b/jquery.tabledit.js
index 8792b88..e678508 100644
--- a/jquery.tabledit.js
+++ b/jquery.tabledit.js
@@ -120,26 +120,42 @@ if (typeof jQuery === 'undefined') {
// Create span element.
var span = '' + text + '';
-
+ var input = "";
// Check if exists the third parameter of editable array.
- if (typeof settings.columns.editable[i][2] !== 'undefined') {
- // Create select element.
- var input = '';
- } else {
- // Create text input element.
- var input = '';
+ // switch the third parameter to test for input type default is text
+ switch(settings.columns.editable[i][2])
+ {
+ case "textarea":
+ input = '';
+
+ break;
+ case "select":
+ // Create select element.
+ input = '';
+
+ break;
+
+ default:
+ // Create text input element.
+ input = '';
+ break;
}
// Add elements and class "view" to table cell.