<div id="buscarcliente" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">Buscar Cliente</h4>
            </div>
            <div class="modal-body ">
                <div class='formdedatos'>
                    <form name="f1"> 
                        <div class="input-group">
                            <input id="nombrecliente" class="form-control input-sm" name="nombrecliente" placeholder="Nombre" required type="text" onkeyup="cargar()">
                                 <span class="input-group-addon">
                                    <a href="#" onclick="limpiar_campos()" type='button'><i class="btn-icon-only icon-remove"></i> Limpiar</a>
                                </span> 
                        </div>  
                        <div id="mostrardatos"> </div> 
                    </form> 
                </div>  
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>
</div>
<script>
$('#buscarcliente').on('shown.bs.modal', function() {
    $("#nombrecliente").focus();
});
</script>

