I'm creating a social network and I wanna include the #hashtag feature...problem is posts are cut at the #. For example, if I wrote, "Hello #StackOverflow community!", the resulting string would be "Hello ". Below are the code and a debug screenshot.
$("#btnPostStatus").click(function () {
var post = $("#txtNewStatus").val();
$.post('/Logic/postStory?text=' + post.toString() + '', null, function(result) {
alert(result);
location.reload();
});
});