What if element is not available?

What if element is not available?

Hi together!

On different subpages, there are div's that i want to talk to via jQuery. Now i am wondering if it could make problems, if i let jQuery Commands in the file, but the div's are not available at this moment?

For example, i have this code:
  1. $("#success").dialog({   
       autoOpen: true,
       modal: true
    });


What if the div with the id "success" is not available?

Cheers,
Max