jqeury select list item entering problem
        Posted  
        
            by mazhar
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mazhar
        
        
        
        Published on 2010-05-14T06:27:49Z
        Indexed on 
            2010/05/14
            6:34 UTC
        
        
        Read the original article
        Hit count: 188
        
jQuery
   $().ready(function() {
$('#remove').click(function() {
   return !$('#FeatureLists option:selected').remove();
    });
    $("#add").click(function() {
    var vals = $("#txtaddfeature").val();
        if(vals !='')
            $("#FeatureLists").prepend("" + vals + "");
        $("#txtaddfeature").val()=""
     });
   });
the thing is that if i enter Add it will go into the option without any problem, but if i enter Manage People only Manage will go as there is a space gap between Manage and People . how will i solve this bug?
© Stack Overflow or respective owner