title: Object as parameter and not string
body: <p>I am doing this for a school project how can I send parameters into klik function as an object and not string. Do I need to close my '' or is this not possible</p>
  <pre><code>var r = $('&lt;input/&gt;').attr({
                           type: &quot;button&quot;,
                           //id: filmidata.arr[i].idi,
                           value: &quot;+&quot;,
                              
                           class: &quot;btn btn-outline-light&quot;
                      }).attr('onclick','klik(&quot;filmidata.arr[i]&quot;)')   
  
  </code></pre>