<script>
function go(param)
{
$.ajax({
type: "POST",
url: "assets/php/ajax.php",
data: "go=1¶m="+param,
success: function(html)
{
$("body").append(html);
}
});
}
</script>
<b onclick="go()">Пример</b>
<input id="item">
<img onclick="set('item')">
<script>
function set(id)
{
$('#'+id).click();
}
</script>