I have this code to hide selected options:
function connect()
{
$(\".selectbox option\").show();
$(\".selectbox\").each(function(i) {
var obj =
As it's been said, you're trying to find an option within an option, so you'll have to get rid of the .find
call.
Apart from that, hiding elements do not work cross-browser, so you'll have to remove the options instead, and add them back when necessary. There are several ways to manage that, all involving storing the full list of options in a variable (as an array, an object, or even HTML string).