<div class="modal fade bs-example-modal-lg" id="myModal"  role="dialog" aria-labelledby="myModalLabel" >
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header" >
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">BUSCADOR</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <input [focus]='true' type="text" class="form-control" id="q" placeholder="Codigo o Nombre" onkeyup="load(1)" autocomplete="off" >
                    </br>
                        <div id="loader" style="position: absolute; text-align: center; top: 55px;  width: 100%;display:none;">
                        </div><!-- Carga gif animado -->
                        <div class="outer_div" ></div><!-- Datos ajax Final -->
                </div>
            </div>
        </div>
    </div>
</div>      
<script>
$('#myModal').on('shown.bs.modal', function() {
    $("#q").focus();
});
</script>     