0

Is it possible to set dynamically generated input text field with auto width? I want to give text field width as auto. But now it has a minimum width. How could I override this without giving a width?

This is what I tried.

$(document).ready(function() {
  $("button").on("click", function(evt) {
  var templ = '<input class="zt-calc-input" type="text" value="1">';
  $('button').after(templ);
  });
});

https://jsfiddle.net/o2gxgz9r/9602/

https://jsfiddle.net/o2gxgz9r/9604/

0 Answers0