I am fairly new to programming, especially HTML/CSS and JavaScript, so I'm sorry if my explanation is not that great.
I'm using ionic just for a template to set it up. My question is, the document is a .html file, and I added in <script>
so I could insert Javascript in. Specifically, I'm trying to add an if-else statement in there. However, I also need to add html code inside of the if statement--I need to add {{question.a1right}}
which calls from a fieldbook spreadsheet (Here's the link: https://api.fieldbook.com/v1/56be4f73bf3e5b030029d62a/quiz_app_q_a/1) so that I can see if it is a "Y" or a "N" value to perform a certain action.
How do I insert HTML in JavaScript inside of a HTML document? Thanks and please explain concepts simply so I can understand :)
<html>
<body>
<ion-view>
<ion-nav-title>Text</ion-nav-title>
<ion-content overflow-scroll="true" padding="true" class="has-header">
<div>
<button class="button button-full button-energized">
<script type="text/javascript">
<script type="text/html">
</script>
</script>
</button>
</div>
</ion-content>
</ion-view>
</body>
</html>