just recognized strange behaviour in IE9 and i have no idea
ich have this function :
function searchProfile(fieldName, term, page, count) {
jQuery.ajax({type:'POST',
data:'fieldName='+fieldName+'&term='+term+'&id=${id}&page='+page+'&count='+count,
url:'${createLink(action: 'searchProfilByName')}',
global: false,
success:function(data,textStatus){jQuery('#'+fieldName+'_results_div').html(data);},
error:function(XMLHttpRequest,textStatus,errorThrown){}});
};
and it´s called for example :
<div class="button" onclick="searchProfile('netzwerk', netzwerk_searchterm.value, 0, -1)">
chrome FF opera safari excellently “read”
netzwerk_searchterm.value
but in IE9 or older theres an error
"SCRIPT: 'netzwerk_searchterm' is undefined"
.val() didn´t work all browsers
anybody got a ninja idea where the error might be ?
thanks in advance
Supposing
netzwerk_searchtermis the id of the field, write this:As you have got jQuery already.