Menu icon Foundation

My Posts



My Comments

Ricky commented on Jarrad Henry's post about 4 years

This is my solution.

http://codepen.io/anon/pen/vOWQEO

Still trying to figure out the pip position. I'd like that centred too.

Ricky commented on Stéphane Richin's post about 4 years

This is my solution.

http://codepen.io/anon/pen/vOWQEO

Still trying to figure out the pip position. I'd like that centred too.

Ricky commented on Ricky's post about 4 years

Found it.

 $("[data-dropdown-content]").on('opened.fndtn.dropdown', function(e) {
        console.log(Foundation.libs.dropdown.S(this).data('target'));
    });

Ricky commented on Ricky's post about 4 years

I guess what I'm trying to get is the target from:

 open : function (dropdown, target) {} 

Ricky commented on Ricky's post about 4 years

Cheers, but I'm trying to find the element that fired off the dropdown. Say I had 3 buttons that all fired off the same dropdown (in this case, I've built a mega menu), and I want to add a new class to the $("[data-dropdown-content]") based on the button that triggered it.

Ricky commented on Ricky's post almost 5 years

^ Mark as spam?

Posts Followed




  • 7
    Replies
  • Abide with server validation

    By David Kavanagh

    abideAJAX

    I had a question since I'm trying to do some validation on a form. This is a change password form and I need more than simple pattern checking. I need to ensure the new password != the old password and that the new password is the same as the confirm pass... (continued)

    Last Reply by thangtm150892 about 1 year ago


Following

    No Content

Followers

My Posts

My Comments

You commented on Jarrad Henry's post about 4 years

This is my solution.

http://codepen.io/anon/pen/vOWQEO

Still trying to figure out the pip position. I'd like that centred too.

You commented on Stéphane Richin's post about 4 years

This is my solution.

http://codepen.io/anon/pen/vOWQEO

Still trying to figure out the pip position. I'd like that centred too.

You commented on Ricky's post about 4 years

Found it.

 $("[data-dropdown-content]").on('opened.fndtn.dropdown', function(e) {
        console.log(Foundation.libs.dropdown.S(this).data('target'));
    });

You commented on Ricky's post about 4 years

I guess what I'm trying to get is the target from:

 open : function (dropdown, target) {} 

You commented on Ricky's post about 4 years

Cheers, but I'm trying to find the element that fired off the dropdown. Say I had 3 buttons that all fired off the same dropdown (in this case, I've built a mega menu), and I want to add a new class to the $("[data-dropdown-content]") based on the button that triggered it.

You commented on Ricky's post almost 5 years

^ Mark as spam?

Posts Followed

Following

  • No Content

Followers

  • No Content