I need to pass a parameter to a JS function but:
when executing this code, call the function before clicking and also do not pass the parameter
/*Este es el codigo AJAX al que quiero agregarle el parametro*/
$('#atribute').on('click',comprobar("hola"))
function comprobar(parametro){
alert("Este parametro es: ",parametro);
}
<!--***Este es el input***-->
<input id="atribute" type="text" title="Precio">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
">
</script>