I have an onclick that works in an HTML file. I am trying to make it function inside an AJAX script.
<script src='https://www.btcsquawk.com/responsivevoice.js'></script>
<input onclick='responsiveVoice.speak("Hello World");' type='button' value=' Play' />
And I have an AJAX piece in a script.js file that reads data properly such as:
case 'chatLine':
arr = [
'<div class="chat chat-',params.id,' rounded"><span class="author">',params.price,
':</span><span class="text">',params.price,'</span><span class="time">',params.price,'</span></div>'];
I need to combine them both an basically take the params.price into
responsiveVoice.speak("params.price");'