Bootstrap 3 – How to maximize input width inside navbar

For Bootstrap version 3.2 and up you should also set the display:table; for the input-group and set the width to 1% for the input-group-addon. <div style=”display:table;” class=”input-group”> <span style=”width: 1%;” class=”input-group-addon”><span class=”glyphicon glyphicon-search”></span></span> <input type=”text” autofocus=”autofocus” autocomplete=”off” placeholder=”Search Here” name=”search” style=”” class=”form-control”> </div> Demo Bootstrap version 3.2+: http://www.bootply.com/t7O3HSGlbc — If you allow changing the position … Read more

Event fired when clearing text input on IE10 with clear icon

The only solution I finally found: // There are 2 events fired on input element when clicking on the clear button: // mousedown and mouseup. $(“input”).bind(“mouseup”, function(e){ var $input = $(this), oldValue = $input.val(); if (oldValue == “”) return; // When this event is fired after clicking on the clear button // the value is … Read more