Hi there, can you help me figure out how to pass the following value as an argument in a JavaScript function?
I am receiving this value dynamically from a Java string variable like so:
String vals= "The apostrophe ( ’ or ' ) is a punctuation < ! ^ & *mark,'";
This value needs to be parsed inside the function called showPopUpMsgBanner.
<html>
<body>
<button onclick="showPopUpMsgBanner('<%=vals%>')" >Click me</button>
<script>
function showPopUpMsgBanner(args){
alert('values '+args);
}
</script>
</body>
</html>