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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:50:14+00:00 2026-05-26T01:50:14+00:00

all, I follow the example of Jquery ui button and translated the html code

  • 0

all, I follow the example of Jquery ui button and translated the html code to asp.net

as follows

enter code here
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<link rel="Stylesheet" type="text/css" href="CSS/jquery.ui.all.css" />
<script type="text/javascript" src="Script/jquery-1.6.2.js"></script>
<script type="text/javascript" src="Script/jquery.ui.button.js"></script>
<script type="text/javascript" src="Script/jquery.ui.core.js"></script>
<script type="text/javascript" src="Script/jquery.ui.widget.js"></script>
</head>
<body>
<form runat="server">
<div class="demo">
    <a href="#" class="demo">An anchor</a>
</div>
</form>
<script type="text/javascript">
    $(function () {
        $("a", ".demo").button();
        $("a", ".demo").click(function () { return false; });
    });
</script>
</body>
</html>

however the css of the anchor button doesn’t show, which mean the anchor shows a link just as before, doesn’t anyone know why this happens?

  • 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-26T01:50:14+00:00Added an answer on May 26, 2026 at 1:50 am

    First use Chrome or Firefox with Firebug. Save your page without your JavaScript, open up the console and put in

    $("a", ".demo")

    Just the ensure nothing’s gone really wrong and that the selector is returning the proper element. If this doesn’t work make sure your jQuery is properly referenced.

    After that put in

    $("a", ".demo").button();

    Now check the link element in the inspector and check that the DOM has been changed (it should now be a span in an a in a div). At this point if it failed double check your references for jQueryUI.

    If that worked but it isn’t showing properly your CSS isn’t referenced correctly.

    Edit based on comment

    Your JS references are in the wrong order. Core needs to come first, then widget, then button. Otherwise each file is trying to use functions that don’t yet exist.

    The best way would be to just reference jQueryUI from a CDN (larger but likely to be cached) or build a custom jQueryUI file from the site rather than including the individual files, this way you won’t get these problems.

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

Sidebar

Related Questions

THE EXAMPLE First and foremost, here's my code and problem: http://www.nathanstpierre.com/MBX/showoff.html THE ISSUE So
My JavaScript is as follows: $.get(/<page>.php, userid='.$userid.'&+status, function(data){ $(#status).show(fast).html(data).delay(4000).hide(fast); }); I have many links
I've tried the answer suggested here , which follows with nearly all answers to
Ok as programmers we all follow programming standards (as in W3 standards, or C++
I used In App Purchase and i follow all step to create In App
General Follow the same standards for all tests. Be clear about what each test
I run into follow problem. Did I miss anything? Association.all().count() 1 Association.all().fetch(1) [Association(**{'server_url': u'server-url',
All instructions to disable Visual Studio hosting process I've found says as follows: Open
I follow the demo http://jquery.bassistance.de/validate/demo/marketo/ and met some problems to achieve the same remote
I have build a custom Html Helper extension as follows: public static string DatePicker(this

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.