I have code which check all the checkboxes and add or remove checked status (this part is working). I need to change text when this function is clicked from "Select All" to "De-select All". Button to select all:
<a class="zute_strane_izmena_selektuj_sve">Select All</a>
jQuery code:
var selektuj_sve = $('.zute_strane_izmena_selektuj_sve'),
slike = $('.zuta_strana_trenutne_slike'),
box = slike.find(':checkbox');
selektuj_sve.on('click', function(){
box.attr('checked', !box.is(':checked'));
});
What I need to do?