title: magento add js function call to input with php
body: <p>I'm tryin to make some changes on the advanced search of magento. I'd like to make the inputs appear one by one. so I need to put a  <code>onchange='showNext()'</code> in every input, but the inputs are generated by PHP like this : </p>
  
  <pre><code>return $this -&gt; _getSelectBlock() -&gt; setName($name) -&gt; setId($attribute 
  -&gt;getAttributeCode()) -&gt; setTitle($this -&gt; getAttributeLabel($attribute)) 
  -&gt; setExtraParams("") -&gt; setValue($this -&gt; getAttributeValue($attribute))
  -&gt; setOptions($options) -&gt; getHtml();
  </code></pre>
  
  <p>thx for your help. </p>