GetElementById + a variable not working
    function sendToSearch(str,ids){

    document.getElementById('qsearch'+ids).value = str;
    document.getElementById('searchResults'+ids).innerHTML = "";
    }

For some reason the expression getElementById('qsearch'+ids) doesn't work. I tested if 'ids' is passed correctly but that wasn't the problem. Any ideas?
GetElementById + a variable not working
===

    function sendToSearch(str,ids){

    document.getElementById('qsearch'+ids).value = str;
    document.getElementById('searchResults'+ids).innerHTML = "";
    }

For some reason the expression getElementById('qsearch'+ids) doesn't work. I tested if 'ids' is passed correctly but that wasn't the problem. Any ideas?