if($(xml).find("error") == 'Search short, please enter a longer search item')
{
showMinChar();
}
And in my XML
<SearchResults>
<error>Search short, please enter a longer search item</error>
</SearchResults>
Is being displayed but the function showMinChar(); is not being called why?
showMinChar()function, no-one can help you debug it. Also, are you seeing / getting any errors in your JS console?