I am getting data from database and using each loop to append data to grdbody.

```
$.each(Data, function (i, v) {
    $("#grdbody").append('<tr/>').children('tr:last')
    .append("<td class='first style2'><label id='lblDesc" + i + "'>" + v.Purpose + "</label></td>")
    .append("<td><a href='#' " value=" + v.Purpose + " onclick='CallPurpose(this)'>Select</a></td>")
     });

```

It is showing correct string like "My name is" on lblDesc but when I pass the same `v.purpose` to function `CallPurpose()` it is just showing only "My" text before blankspace.

```
function CallPurpose(cntrl)
{
    var RptDesc = $(cntrl).attr("value");
    alert(RptDesc); 
}

```

It is just showing "My" only text before space. how it will show complete string?