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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:24:25+00:00 2026-05-17T22:24:25+00:00

Possible Duplicate: Custom alert using Javascript I want to create a confirmation message-Do you

  • 0

Possible Duplicate:
Custom alert using Javascript

I want to create a confirmation message-“Do you want to proceed deleting? [Yes] or [No]”.

I have a table with many data rows where the delete link is clicked in a particular row, the data in the row is deleted in the database. When the user clicks the delete option, i want to show the confirmation message first, so that user can validate his actions before deleting.

How can i do that dynamically using java script and css? I don’t want to use alerBox() as it is ugly and is so unprofessional.

I am currently working for my school project-jsp and Java Servlet.

Hope any experts will help me. I love this forum as people here are very helpful. Advance thanks!

  • 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-17T22:24:26+00:00Added an answer on May 17, 2026 at 10:24 pm

    If you want really to look good try this approach:Use for example jQuery and jQueryUI.

    In your page put this:

    <head>
    <link rel="stylesheet" type="text/css" media="all" href="pathtoyourappfolder/jquery/css/black-tie/jquery-ui-1.8.4.custom.css" />
    <script type="text/javascript" src="pathtoyourappfolder/jquery/js/jquery-1.4.2.min.js'" ></script>
    <script type="text/javascript" src="pathtoyourappfolder/jquery/js/jquery-ui-1.8.4.custom.min.js'" ></script>
    </head>
    <body>
      <div id="dialog-confirm" title="DELETE">
        <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
        Are you sure you want to delete this record?</p>
      </div>
    
      <table id="TblName">
        <tr>
            <td class="actions">
                <a href="http://something/somethingelse/1" class="del">del</a>
            </td>
            <td>...</td>
        </tr>
        <tr>
            <td class="actions">
                <a href="http://something/somethingelse/2" class="del">del</a>
            </td>
    
            <td></td>
        </tr>   
      </table>
    
    <script language="javascript" type="text/javascript">
    
     $(document).ready(function() {
    
            $('#TblName td.actions a.del').click(function(event){
                $("#dialog-confirm").dialog('open');
            });
    
     }
    
    </script>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to “properly” create a custom object in JavaScript? Is it possible
Possible Duplicate: How to create custom modal segue in 4.2 Xcode using storyboard So
Possible Duplicate: How to “properly” create a custom object in JavaScript? Sorry if this
Possible Duplicate: How to create custom modal segue in 4.2 Xcode using storyboard I'm
Possible Duplicate: mysql custom sort I have an array of IDs: $ids = array(5,
Possible Duplicate: Creating a custom Document Library in SharePoint I have 2 users, Martin
Possible Duplicate: How to create Custom Ratings bar in Android The inbuilt rating bar
Possible Duplicate: Dismiss a custom dialog? I have a customized dialog, the layout file
Possible Duplicate: TFS 2010 Custom Build Activity TF215097 error I'm trying to create a
Possible Duplicate: How do you create a custom camera view, instead of UIImagePickerViewController? Many

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.