[jQuery] jqModal problem

[jQuery] jqModal problem


Dear,
I'm using jqModal like code below :
<script>
$(document).ready(function(){
$("#example").treeview();
     $('#dialog').jqm();
     $('a.jqModal').click(function(){
     var e = $(this).text();    
     $.get("tab_rule.php", { keygroup : e }, function(data){
         //$("#test1").html(data);         
     });         
     });             
});
</script>
...
<a id='#' href="?<?=$rli['idseq'];?>" class='jqModal'><?=$rli['key'];?></a></td>
...
<div id="dialog" class="jqmWindow" style='display:none'>
<div id="test1" style='height:340px;overflow:auto;'></div>

<a href='#' class='jqmClose'>Close</a>


</div>
when click on link a href, firebug window open and there is red text
"$(':input:visible',h.w)[0] is undefined", what's wrong with my code ?
thanks for your help.
Popo