jquery number compare
<p>I met a trouble to compare number in jquery. test code here:</p>

<pre><code>&lt;script src="jquery.js"&gt;&lt;/script&gt;
&lt;script&gt;
jQuery(document).ready(function(){
    var val1 = $("#aaa").attr('title');
    var val2 = $("#bbb").html();
    if(val1&gt;=val2){
        $("#ccc").html(val1);
    }else{
        $("#ccc").html(val2);
    }
});
&lt;/script&gt;
&lt;div id="aaa" title="1"&gt;aaa&lt;/div&gt;
//set title=1 show 1, set title=2 show 111
&lt;div id="bbb"&gt;111&lt;/div&gt;
&lt;div id="ccc"&gt;&lt;/div&gt;
</code></pre>

<p>As code show, two number from html dom. now I set number in <code>div#aaa[title]</code>, if set number one, it is right, and if set number 2, the result is wrong. Where is the problem? Thanks.</p>
