I have the following label created by a plugin
<label>
Buscar:
<input type="search" class="form-control input-sm" placeholder="" aria-controls="Pedidos">
</label>
What I want to do is just change the "Search" for something X.
I tried it the following way but without success
var Label = $('#Pedidos_filter').find('label').html();
$('#Pedidos_filter').find('label').html(Label.replace('Buscar','x'));
How could I be doing this?