My string is like this
sakjgbsd aksdg's ad asidg's iasudgbsb
but when i print the string in function it prints only
sakjgbsd aksdg
the part after (') is not printing
here is how i send data
<a href='#' data-status='" + data[i][col[j]] + "' " +
"onclick='submit(this)'>Click Here</a>
here is Function
function submit(str)
{
var status = $(str).attr("data-status");
alert(status)
}