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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:54:28+00:00 2026-06-15T19:54:28+00:00

I have a dynamic table row created via PHP that looks like this: while($carrier

  • 0

I have a dynamic table row created via PHP that looks like this:

 while($carrier = mysql_fetch_array($selcomp)){
                $carrier1 = $carrier['carname'];
            }
            ?>
            <tr ><td><a class='activate_modal' name='<?php echo $leadlist['ID'];?>' href="#"><input id="soft-quote" type="button" value="Soft Quote" class="searchbutton" /></a></td></tr>
            <?
         }

I need to somehow pass the

      name='<?php echo $leadlist['ID'];?>'

through the dialog open

 $( "#dialog-form" ).dialog({
        autoOpen: false,
        height: 300,
        width: 350,
        modal: true,
        buttons: {
            "Complete Soft Quote": function() {
                var bValid = true;
                allFields.removeClass( "ui-state-error" );


                if ( bValid ) {
                          // call to some ajax.
                    $( this ).dialog( "close" );
                }
            },
            Cancel: function() {
                $( this ).dialog( "close" );
            }
        },
        close: function() {
            allFields.val( "" ).removeClass( "ui-state-error" );
        }
    });

        $('.activate_modal').click(function(){

            var rowid = $(this).attr('name');

            $( "#dialog-form" ).dialog( "open" );

        });

Either to the form:

<div id="dialog-form" title="Create Soft Quote">
<p class="validateTips">All form fields are required.</p>

<form>
<fieldset>
    <label for="payroll">Payroll</label>
    <div id="yourelement"></div>
    <input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
    <label for="email">Email</label>
    <input type="text" name="email" id="email" value="" class="text ui-widget-content ui-corner-all" />
    <label for="taxid">Federal Tax ID</label>
    <input type="text" name="taxid" id="taxid" value="" class="text ui-widget-content ui-corner-all" />
</fieldset>
</form>

or directly the jquery function. Any suggestions?

  • 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-06-15T19:54:29+00:00Added an answer on June 15, 2026 at 7:54 pm

    Try this out.

    $('.activate_modal').click(function(){
       var rowid = $(this).attr('name');
       alert(rowid);
       $('#taxid').after('<input type="hidden" name="rowid" id="rowid" value="'+rowid+'" />');   
       $('#dialog-form').dialog('open');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some PHP code that generates dynamic tables of data on the fly.
I am new to android. I have to add table row in a dynamic
I have created a dynamic table, but I'm facing an issue when I try
http://fiddle.jshell.net/kBFU7/2/ In the code, I have created a dynamic table through jQuery. I also
I'm doing a dynamic table to collect passengers personal data. This table have above
I've a dynamic UITableView that I created in Storyboard. This tableview has many cells
I have this table with which I create dynamic checkboxes (the number of records
I have a misunderstanding regarding some dynamic row inserts in a MySQL table. All
Friends, I have a dynamic sql query that I would like to execute and
I have created a temporary table with dynamic columns. These columns are the values

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.