how to create live obect using jquery
<p>There is Json array and i am using it to display my error messages.</p>

<pre><code>var errorMessages {
"E1":"Error Occured During Request Processing...",  
"E2":"&amp;nbsp;Enter User Name"
}
</code></pre>

<p>Next i want to display error messages base on error id </p>

<pre><code>function showMessage(errorId){
    $('#serverMsg').html('');
    var msg = $('#messageContainer');        
    if (errorId.length != 0) {
            $('#messageContainer').show();
            $('#serverMsg').html(errorMessages.errorId);
    }   
    $("#messageContainer").focus(); 
}
</code></pre>

<p>it gives me undfine.</p>
