Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6857755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:04:05+00:00 2026-05-27T02:04:05+00:00

made a menu out of the following code but the original href in the

  • 0

made a menu out of the following code but the original href in the top ‘edit’ link doesn’t work any more?

original html code.

 <div class="mediaOptionsButtonSet">
  <button class="mediaOptionsButton">media options</button>
 </div>

 <ul class="mediaOptionsMenu">
  <li><a href="/youradmin_v2/media/edit/<?=$row['mediaID']?>" class="mediaEdit">edit</a></li>
  <li>
   <a lang="<?=$row['mediaID']?>" href="<?=$row['pathToFile']."/".$row['mediaID']."/".$row['filename']?>" rel="prettyPhoto[pp_gal]" title="<?=$row['title']?>" class="mediaView">view</a>
  </li>
  <li><a href="#" class="mediaCrop">crop</a></li>
  <li><a href="#" class="mediaDuplicate">duplicate</a></li>
  <li><a href="#" class="mediaPublish active">active</a></li>
 </ul>

after button set applied;

<li class="ui-menu-item" role="menuitem">
  <a href="/youradmin_v2/media/edit/2371" class="mediaEdit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon ui-state-hover ui-state-active" role="button" aria-disabled="false" tabindex="-1" id="ui-active-menuitem">
    <span class="ui-button-icon-primary ui-icon ui-icon-wrench"></span>
    <span class="ui-button-text">edit</span>
  </a>
</li>

and menu code is;

$("a.mediaEdit").button({
   icons: {
     primary: 'ui-icon-wrench'
   } 
});

$(".mediaOptionsButtonSet button").button({
   icons: {
     primary: 'ui-icon-gear',
     secondary: 'ui-icon-triangle-1-s'
   },
   text: false
}).click( function() {
   var menu = $(this).parent().next().show().position({
      my: "right top",
      at: "right top",
      of: this,
   });
   menu.css('z-index',2000);
   $(document).one("click", function() {
      menu.hide();
   });
   menu.bind("mouseleave", function(event, ui) {
      menu.hide();
   });
   return false;
})
  .parent()
  .buttonset()
  .next()
  .hide()
  .menu(); 

doen anyone know how i can get the href to stay as the default action?

best, Dan.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:04:05+00:00Added an answer on May 27, 2026 at 2:04 am
    $("a", ".demo").click(function () { window.location = this.href });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made the following code to expand menu when mouse is over the LI
I have a sliding div menu made with jQuery, but you have to click
I made a slide down effect to my menu. But i cant make it
edit Re-writing most of this post as I've made some improvements to the code
I have created a very basic custom layout to set out a menu made
I have menu made with Superfish jquery plugin http://users.tpg.com.au/j_birch/plugins/superfish But i have some problems
I have made a diary where I have a menu that echoes out every
Specifically, I have something like a game, with a menu screen made out of
I made a jsFiddle of a menu that flies out: http://jsfiddle.net/ZSMLg/1/ Here is the
I've made some menus, but can't figure out how to set the actual page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.