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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:47:56+00:00 2026-05-19T09:47:56+00:00

Can anyone assist with how to successfully use JQueryUI Dialog where I remove a

  • 0

Can anyone assist with how to successfully use JQueryUI Dialog where I remove a table row that is displayed in the dialog by using a link or some other mechanism?

Here is a visual of the code I’m working with

code
http://i51.tinypic.com/30sh55t.png

HTML

    <tr>
        <td>1/1/0001</td>
        <td>THOMAS</td>
        <td>LNAMEONE<input type="hidden" id="name_17053942" value="LNAMEONE" /></td>
        <td>SKIN TW</td>
        <td>17053942<input type="hidden" id="number_17053942" value="SKINNER" /></td>
        <td>1/7/2009</td><td>Graph Trend View <a href="#" id="17053942" class="ui-state-add ui-corner-all">Add</a></td>
        <td class="hide-cell">
        <!-- ui-dialog -->
       <div id="dialog_17053942_message" title="17053942 THOMAS SKINNER">
        <p></p>
       </div>            
        </td>
    </tr>

    <tr>
        <td>6/21/2010</td>
        <td>EMERY</td>
        <td>LNAMETWO<input type="hidden" id="name_ZF365763B" value="LNAMETWO" /></td>
        <td>RAND E</td>
        <td>ZF365763B<input type="hidden" id="number_ZF365763B" value="ZF365763B" /></td>
        <td>1/7/2009</td><td>Graph Trend View <a href="#" id="ZF365763B" class="ui-state-add ui-corner-all">Add</a></td>
        <td class="hide-cell">
        <!-- ui-dialog -->
       <div id="dialog_ZF365763B_message" title="ZF365763B EMERY RANDOLPH">
        <p></p>
       </div>            
        </td>
    </tr>

JQUERY

    $(function() {

      // Dialog
      $('#carrier-list').dialog({
        autoOpen: false,
        resizable: false,
        height: 260,
        modal: true,
        width: 240,
        buttons: {
          "Compare Carriers": function() {
            $(this).dialog('close');
          },
          "Save": function() {
            $(this).dialog('close');
          }
        }

      });

      // Dialog Link
      // This adds a carrier to a list
      $('.ui-state-add').click(function() {

   var target = $(this).attr("id");
   //alert(target);

   $("#carrier-table").prepend("<tr id='" + target + "'>" +
       "<td><a href='#' id='" + target + "' class='ui-state-remove ui-corner-all'>remove</a></td>" +
       "<td>" + target + "</td>" +
       "<td>" + $("#name_" + target).val() + "</td>" +
      "</tr>"); 

     $('#carrier-list').dialog('open');
        return false;
      });

      //hover states on the static widgets
      $('.ui-state-add').hover(
         function() { $(this).addClass('ui-state-hover'); },
         function() { $(this).removeClass('ui-state-hover'); }
        );

      // Remove Dialog Link
      // This adds a carrier to a list
      $('.ui-state-remove').click(function() {

        var target = $(this).attr("id");
        alert(target);

        $('#' + target).remove(); ;

        //$('#carrier-list').dialog('open');
        return false;
      });                

    });
  • 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-19T09:47:57+00:00Added an answer on May 19, 2026 at 9:47 am

    I came up with a solution.

       <script type="text/javascript" id="removeCarrier">
         function removeCarrierFromList(obj) {
           var i = obj.parentNode.parentNode.rowIndex;
           document.getElementById('carrier-table').deleteRow(i);
           $('#' + obj.id).removeClass('delete-carrier-company');
           //alert(obj.id); //.hasClass('add-carrier-company').tostring() ); //
    
           $('#' + obj.id).bind('click', function() {
              //alert('User clicked on ' + obj.id);
           });
         }
       </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone assist me in finding the proper formula for quad normalization ? using
Does anyone know of any free tools that can assist in converting an SQL2005
Can anyone recommend some good resources that highlight the differences between Oracle and the
Can anyone recommend software or a .NET library that will check for bounced emails
Greetings! Can anyone please kindly assist me finding a way around the following: load
Can anyone assist me in getting a Python script running on Hostgator Shared hosting?
Can anyone assist me in getting a function to be called, in this example
Can anyone assist me with the following. I've configured spring authentication fine so -
bit stuck try to achieve something in Jquery and wondered if anyone can assist..
Can anyone recommend a plugin/extension for Flash Professional that can improve debugging features for

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.