again with a problem
This is my dynamic created content:
var content =
$('<div data-role="collapsible" id="set"' + naslov + '">'+
'<h3>Sectionit ' + naslov + '</h3>'+
'<p>' + opis + '</p>'+
'<a data-ajax="false" href="#" onclick="poslinapri('+niz+')" class="ui-btn ui-shadow ui-corner-all"><div class="prostor1tr">More</div></a>'+
'</div>');
the problem is that I want in the onClick function to pass a sting not a variable ....
lets say that var niz= "hello" .... but I want it to apper as onclick="poslinapri('hello')...
I tried a few things with quotes and double quotes ... but no success ... so can anybody help me here ?
thanks