Calling javasript function inside a jquery generate <a href>
<p>I have a problem with this piece of code:</p>

<pre><code>$(document).ready(function() {

    $('.notActiveId').change(function() {

        if ($(this).attr('value').length === 0 ) {

            $("#notActiveButton").html('');

        } else {

             $("#notActiveButton").html('&lt;a href="javascript:void(0)" onClick="setStatus(' + $(this).attr('value') + ', activate)" class="operationUnlock" &gt;Activate&lt;/a&gt;');

        }

    });
});
</code></pre>

<p>I'm calling with <code>$(this).attr('value')</code> a value from a select list named <code>notActiveId</code>. But the problem is how to write <code>$(this).attr('value')</code> in <code>setStatus()</code> function, because value of my select is in this form: <code>RZT_83848Rer</code> (so it consists of characters, underline and numbers).</p>

<p>If I try to write it as above, then JS prints error. </p>
