onclick apply class button span php echo button_apply span script lang

1
2
3
4
5
6
7
<a onclick="apply()" class="button"><span><?php echo $button_apply; ?></span></a>
<script language="javascript">
function apply(){
$('#form').append('<input type="hidden" id="apply" name="apply" value="1" />');
$('#form').submit();
}
</script>