Hi
I'm trying to do some jQuery stuff but get this error:
fn is not a function https://localhost:6002/a4j/g/3_2_2.GAjquery.js.jsf Line 1776
function toggleAgrTbl(imgId, tableId){
tableId = '#'+tableId;
jQuery(tableId).slideToggle('fast');
}
function toggleAgrTbl(imgId, tableId){
jQuery('a').addClass('blue');
}
<a4j:loadScript src="resource://jquery.js"/>
Just managed to figure it out, didn't escape properly!
In case someone else has a similar problem:
I had to "double" escape:
onclick="toggleAgrTbl('agrTbl1\\\\:#{rowKey}\\\\:toggleImg', 'agrTbl1\\\\:#{rowKey}\\\\:subTbl1');"