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 1085687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:43:12+00:00 2026-05-16T22:43:12+00:00

I have a page with anchor tags that are being converted to JQuery UI

  • 0

I have a page with anchor tags that are being converted to JQuery UI buttons via the following code.

$(document).ready(function() {
  $('a.jquery-button-add').button({ icons : { primary: 'ui-icon-circle-plus' } });
});`

For some reason, the icon is only visible on the button when I hold the mouse button down. Without holding the mouse down on the button, the icon is invisible.

This is occurring in all browsers.

Help would be greatly appreciated 🙂

EDIT: This is the exact code I am using to test this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="css/jquery-ui-overcast.css" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
<script type="text/javascript"> 
    <!-- jQuery click buttons -->
    $(document).ready(function() {
        $('a.jquery-button-add').button({ icons : { primary: 'ui-icon-circle-plus' } });
        $('a.jquery-button').button();
    });

</script>
</head>

<body>
<a href="#" class="jquery-button-add">My nice button</a>
</body>
</html>
  • 1 1 Answer
  • 2 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-16T22:43:13+00:00Added an answer on May 16, 2026 at 10:43 pm

    You must have something in addition to the standard jQuery UI CSS that’s interfering, here’s your code in a very simple test case working.

    It’s a <span> within an anchor, like this that results:

    <a class="jquery-button-add ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon" href="#" role="button" aria-disabled="false">
      <span class="ui-button-icon-primary ui-icon ui-icon-circle-plus"></span>
      <span class="ui-button-text"></span>
    </a>
    

    Make sure that you don’t have additional styles interfering with that first <span>‘s size, display:block; or overflow: hidden;, that’s usually what causes .button() issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with HTML anchor tags that have the title attribute set.
Using jquery I have a clicking tab mechanism that are nothing but anchor tags
My page contain lots of anchor and i have to put that html in
I have multiple anchor tags on my web page and I am currently using
I have some list items with anchor tags, that are set to display block
I have a page set up with tabs that includes the history function so
I have a website that does not have page refreshes when the visitor navigates
What is the best method of doing the following: I have Page A with
I want to create anchor tags that jump to which ever section of a
I have a page that displays restaurant food menu. And when a person clicks

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.