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),
Note: this FullName in obj may word with spaces (like: Malik Ahmed Ali),
anything help will be appreciated.
- <li class="contact" style="margin-left: -45px;" onclick="Pinfo(' + obj[i].FullName + ')">


Shweta LodhaRank #31 · 39.8K reputationPosted Apr 28, 2019, 9:21 PM EDT
Rameez JavedRank #3,873 · 383 reputationPosted Apr 28, 2019, 9:27 PM EDT
Pinfo(\''+ obj[i].ParentName +'\')
Shweta LodhaRank #31 · 39.8K reputationPosted Apr 28, 2019, 11:46 PM EDT