Tab Click using Tab Unique ID

Home Forums Classic DFFS Tab Click using Tab Unique ID

Viewing 1 reply thread
  • Author
    Posts
    • #36202
      MichaelTCC
      Participant

        Is there a way to determine a tab has been clicked using the tab Unique ID?

        This works for me:
        jQuery(“#dffs_tab_2”).on(“click”,function() {
        // do something…
        });

        But I’d like to be able to do this:
        jQuery(“dffs_tab_Tab-Unique-ID”)

      • #36203
        Alexander Bautz
        Keymaster

          Hi,
          The tab has the uniqueId as a css class som you can to it like this if your tab unique id is “Tab1”:

          jQuery(".tabUniqueID_Tab1").on("click", function(){
              // Do something
          });
          

          Alexander

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.