Cart Buy Licenses Contact Integrate into App Docs Support Login/Register
v 1.9.5
v 1.9.5
Overview Examples Docs Source


Use html elements, including video and audio, inside your survey - Html question)

            Survey.defaultBootstrapCss.navigationButton = "btn btn-green";

                var json = {
  "elements": [
      "type": "html",
      "name": "info",
      "html": "<table><body><row><td><img src='/Content/Images/examples/26178-20160417.jpg' width='100px' /></td><td style='padding:20px'>You may put here any html code. For example images, <b>text</b> or <a href=''  target='_blank'>links</a></td></row></body></table>"

                window.survey = new Survey.Model(json);
            survey.onComplete.add(function(sender) {
            document.querySelector('#surveyResult').textContent =
            "Result JSON:\n" + JSON.stringify(, null, 3);
            model: survey 

<!DOCTYPE html>
<html lang="en">
    <title>Use html elements, including video and audio, inside your survey - Html question), jQuery Survey Library Example</title>

<meta name="viewport" content="width=device-width" />
    <script src=""></script>
    <script src="/DevBuilds/survey-jquery/survey.jquery.min.js"></script>
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="./index.css">

            <div id="surveyElement" style="display:inline-block;width:100%;">
    <div id="surveyResult"></div>

<script type="text/javascript" src="./index.js"></script>


html property:

var q = survey.getQuestionByName('info');
q.html = yourHtml;