mercredi 21 mars 2018

Passing json object in href function - JavaScript

I need to pass a json object to function, which is as mentioned below in a href, but this JS code is not getting evaluated. So can anyone suggest a workaroud or a solution for this?

P.S. I cannot return the jsonResponse after function call.

str += "<a href='function_test( 1," + jsonResponse +")'>1. " + function_test + "</a></br>";




Aucun commentaire:

Enregistrer un commentaire