tengo un formulario que realiza una accion dependiendo que boton active, lo que quiero hacer es realizar la accion del primer input sin darle la opcion al usuario de elegir que boton tocar este es el form:
<form action="javascript:;" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<fieldset>
*{<h3 id="new_account_title">{l s='New Customer'}</h3>
<div id="opc_account_choice">
<div class="opc_float">
<p class="title_block">{l s='Instant Checkout'}</p>
<p>
<input type="button" class="exclusive_large" id="opc_guestCheckout" value="{l s='Guest checkout'}" />
</p>
</div>
<div class="opc_float">
<p class="title_block">{l s='Create your account today and enjoy:'}</p>
<ul class="bullet">
<li>{l s='Personalized and secure access'}</li>
<li>{l s='A fast and easy check out process'}</li>
<li>{l s='Separate billing and shipping addresses'}</li>
</ul>
<p>
<input type="button" class="button_large" id="opc_createAccount" value="{l s='Create an account'}" />
</p>
</div>
<div class="clear"></div>
</div>}*
<div id="opc_account_form">
{$HOOK_CREATE_ACCOUNT_TOP}
<script type="text/javascript">
// <![CDATA[
idSelectedCountry = {if isset($guestInformations) && $guestInformations.id_state}{$guestInformations.id _state|intval}{else}false{/if};
{if isset($countries)}
{foreach from=$countries item='country'}
{if isset($country.states) && $country.contains_states}
countries[{$country.id_country|intval}] = new Array();
{foreach from=$country.states item='state' name='states'}
countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|escape:'htmlall':'UTF-8'}'{rdelim});
{/foreach}
{/if}
{if $country.need_identification_number}
countriesNeedIDNumber.push({$country.id_country|in tval});
{/if}
{if isset($country.need_zip_code)}
countriesNeedZipCode[{$country.id_country|intval}] = {$country.need_zip_code};
{/if}
{/foreach}
{/if}
//]]>
{literal}
function vat_number()
{
if (($('#company').length) && ($('#company').val() != ''))
$('#vat_number_block').show();
else
$('#vat_number_block').hide();
}
function vat_number_invoice()
{
if (($('#company_invoice').length) && ($('#company_invoice').val() != ''))
$('#vat_number_block_invoice').show();
else
$('#vat_number_block_invoice').hide();
}
$(document).ready(function() {
$('#company').on('input',function(){
vat_number();
});
$('#company_invoice').on('input',function(){
vat_number_invoice();
});
vat_number();
vat_number_invoice();
{/literal}
$('.id_state option[value={if isset($guestInformations.id_state)}{$guestInformat ions.id_state|intval}{/if}]').prop('selected', true);
$('.id_state_invoice option[value={if isset($guestInformations.id_state_invoice)}{$guest Informations.id_state_invoice|intval}{/if}]').prop('selected', true);
{literal}
});
{/literal}
</script>
Muchas gracias.