<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<a href="" id="link">Link</a>
<form type="GET" action="http://www.google.ru/">
<input type="hidden" id="ololo" name="q" value="default" />
<input type="submit" id="lalala" />
</form>
<script>
$('#link').click(function(){
$('#ololo').val('clicked!');
});
$('#lalala').click(function(){
$('#link').click();
});
</script>