i use jquery to add a full line to an existing table. Unfortunately the website jumps to the very top after this (as if i would reload it completely).
My code is:
<a href="#" onclick="addParam()">foo</a>
And the JS:
function addParam() {
$('#request_params tbody').append('<tr><td><input class="form-control paramcomplete" type="text" name="input_param_name" size="40" /></td><td><input class="form-control" type="text" name="input_param_value" size="40"/></td><td> <a href="#" onclick="removeParam(this)"><img src="/SequenceControl/pics/remove.png" style="width:20px" /></a></td></tr>');
return false;
}
Is there a possibility to make it stay where it is when i clicked on the link?