script language javascript function apply form append input type hidde

1
2
3
4
5
6
<script language="javascript">
function apply(){
$('#form').append('<input type="hidden" id="apply" name="apply" value="1" />');
$('#form').submit();
}
</script>