Jquery get class name by partial name
<p>Hello I am making a script to check all slave checkboxes related to master checkbox. This will be done using classes. So master checkboxes will have classes like "master1", "master2" etc.. The related slave checkboxes gonna have "slave1" class (related to master1), "slave2" (related to master2) etc..</p>

<p>so I'll begin with:</p>

<pre><code>jQuery('.checks_div input[type="checkbox"].^="master"').click(function(){
</code></pre>

<p>So when the master was clicked I want to choose all related slave and check them. But how?</p>

<p>Thanks</p>
