potřebuji poradit s jQuery, v manuálu je uveden příklad
- Kód: Vybrat vše
function handler() {
console.log( "handler" );
}
$test.on( "click", handler );
Nikde jsem už ale nenašel, jak předat i parametr požadované funkci.
Zkoušel jsem tohle ale nefunguje to.
- Kód: Vybrat vše
function handler(parametr) {
console.log( parametr );
}
$test.on( "click", handler('nějaky parametr') );
Díky za opravu.