<button class="btn red act" onclick="myFunc">Red</button>
<button class="btn yellow" onclick="myFunc">Yellow</button>
<button class="btn green" onclick="myFunc">Green</button>
<button class="btn blue" onclick="myFunc">Blue</button>
только функция будет не "function(el, i)" а - "function myFunc(el, i)"
верно?
|