Rameez Javed

Rameez Javed

  • NA
  • 395
  • 62.2k

response.d object's string value passing error,

Apr 29 2019 1:14 AM
Hi, can anybody tell me about the passing json object's string value to javascript function, actally im trying to pass a value of obj[i].FullName to function like below.
but the error come like SytaxError Unexpected end of input...
Note: this FullName in obj may word with spaces (like: Malik Ahmed Ali),
anything help will be appreciated.
 
  1. <li class="contact" style="margin-left: -45px;" onclick="Pinfo(' + obj[i].FullName + ')"></li>  

Answers (3)