Can someone tell me why is the call to my function hideShow not working ?
<a id='plusMinus0' href='#' title='Afficher la liste des messages d erreurs' onclick='hideShow(0);'>
function hideShow(number){
alert("i am here");
$('#errMsgGroup'+number).toggle('slow', function() {
if($('#plusMinus'+number).children('img').attr('src').indexOf('images/NORIA_minus.JPG') >= 0){
$('#plusMinus'+number).children('img').attr('src', 'images/NORIA_plus.JPG');
$('#plusMinus'+number).children('img').attr('title', 'hide errors');
}
else{
$('#plusMinus'+number).children('img').attr('src', 'images/NORIA_minus.JPG');
$('#plusMinus'+number).children('img').attr('title', 'show errors');
}
});
}
<script>tags?alertfor me, even with the new markup: jsfiddle.net/GYM38/1. If you want useful help, create a jsfiddle.net demo with the problem.ReferenceError: hideShow is not defined. ChangeonLoadin the select box toNo wrap - in <head>. Since you said earlier that you don't get an error, I wonder if this is really the issue or you just didn't know how to use jsfiddle properly.