unable to split string in jquery
<pre><code> &lt;table border="0"  class="commentbox"&gt;
   &lt;tr&gt;
     &lt;td&gt;
          &lt;div id="comment-f78d0b00-a008-473d-b647-a4a103ee3778"&gt;&lt;/div&gt;
         &lt;input type="button" class='btnReply' id="reply-f78d0b00-a008-473d-b647-a4a103ee3778" value="Reply"/&gt;

     &lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;

  $(".commentbox .btnReply").live("click", function () {
            //  $(this).hide();
            // i = 1;
            id = $(this).attr("id").split("-")[1]
            alert(id);
            var strDiv = 
             "&lt;input type='text' class='txtCmnt' id='txtReply-" + id + "' /&gt; 
        &lt;input type='button' class='btnSave' value='Save' id='btnSave-" + id + "' /&gt; ";
            $("#comment-" + id).append(strDiv);


        });
</code></pre>

<p>i want the f78d0b00-a008-473d-b647-a4a103ee3778 to come after split rather alert is giving
 <strong>f78d0b00</strong></p>

<p>I have tried to change id = comment_ f78d0b00-a008-473d-b647-a4a103ee3778  and split</p>

<pre><code>id = $(this).attr("id").split("_")[1],but it doesnt work.
</code></pre>

<p><strong>Edited</strong></p>

<p><strong>Input</strong> - container-f78d0b00-a008-473d-b647-a4a103ee3778 </p>

<p><strong>Output</strong> after split f78d0b00-a008-473d-b647-a4a103ee3778 </p>
