I'm trying to do something like this:
<iframe th:src="'myFunction($videoUrl);'"></iframe>
where myFunction is a jQuery function. I want the src value to be the output of the function.
So far, I've tried
<iframe th:src="'javascript:myFunction(\''+ ${videoUrl} +'\');'" ></iframe>
However the output is not the result of the function, but the function with the url as attributeL. I'm guessing this works well with onClick, but it's not what I'm looking for.
Is it possible?