jasmine test - mock element html
<p>I want to write test to my JS script. 
I have on my HTML page input element, which receives values through user.
My JS script gets this values and creates JSON object.</p>

<p>HTML</p>

<pre><code>&lt;input name="test1" type="text" id="inputWord1"&gt;
&lt;input name="test2" type="text" id="inputWord2"&gt;
</code></pre>

<p>JS script</p>

<pre><code>var myFun = function(){
    var data = {};
    data.first = $('#inputWord1').val();
    data.second = $('#inputWord2').val();
    return data;
}
</code></pre>

<p>In my script Jasmine I would like to simulate data input.</p>

<p>I suppose, that I should mock html element in Jasmine.
The html element will be fake input data.</p>

<p>But, I don't know how implement this in Jasmine. </p>