Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // the actual code
- $('#voyages').on('click', function() {
- if (continentOuvert == false) {
- $('#voyages i.fas.fa-arrow-up').show(500);
- $('#voyages i.fas.fa-arrow-down').hide();
- }
- });
- // the functions I try to make
- function arrowUp() {
- $('this i.fas.fa-arrow-up').show(500);
- $('this i.fas.fa-arrow-down').hide();
- }
- // or
- function arrowUp() {
- $(this + ' i.fas.fa-arrow-up').show(500);
- $(this + ' i.fas.fa-arrow-down').hide();
- }
- $(this).find('i.fas.fa-arrow-up').show(500);
- $(this).find('i.fas.fa-arrow-down').hide();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement