jqeury select list item entering problem
- by mazhar
$().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?