Why is this not working ?
<img id="xx" src="/Content/components/imgs/add.gif" onclick='ShowLookup({"id": "22","name": "Robert Pitt"})' />
开发者_运维问答or
<img id="xx" src="/Content/components/imgs/add.gif" onclick='ShowLookup("id": "22","name": "Robert Pitt")' />
When I click on the image I got an error: Invalid property id
Works like a charm for me :
http://jsfiddle.net/neebz/uwywG/1/
精彩评论