how to simulate $ function when can't use jquery 
<p>my iphone can't use jquery , so i have to simulate  $ function by myself:</p>

<p>this is my code :</p>

<pre><code>function $(str){
    var div=document.createElement('div')
    div.innerHTML=str;
    return div
   }
</code></pre>

<p>and you can see , the result has a Redundant parent div，</p>

<p>so how to clear the raw div ,</p>

<p>thanks</p>
