random

Benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<table class="stratui-finalsale-table" id="finalSaleDownPaymentTable">
    <thead>
        <tr align="left">
            <th colspan="2">
                Downpayment Information
            </th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="stratui-finalsale-table-control finalSaleTDWidth" style="width: 258px;">
                <span class="control-label">Revised Minimum Downpayment Amount</span>
            </td>
            <td style="border-color: rgb(255, 255, 255);">
                <span id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_PaymentOption_DepositAmt_Amt_View">$2,155.00</span>
            </td>
        </tr>
        <tr>
            <td class="stratui-finalsale-table-control">
                <span class="fixed-width-error"></span>
                <span class="stratui-required">*</span><label for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_PaymentOption_DepositAmt_Amt" class="control-label">
                    Downpayment Amount</label>
            </td>
            <td style="border-color: rgb(255, 255, 255);">
                <input type="text" validationmode="decimal" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_PaymentOption_DepositAmt_Amt" class="stratui-control-text" disabled="">
            </td>
        </tr>
        <tr class="add-CompanionPolicy stratui-hidden" id="billingErrorMessageContainer" style="display: none;">
            <td style="padding: 1em;">
                <span class="note">The billing system is temporarily unavailable. Unable to retrieve
                    down payment details.</span>
            </td>
        </tr>
    </tbody>
</table>
<div class="stratui-finalsale-container" id="policyDetailsContainer">
                
<div class="ie-fix">&nbsp;</div>

    <table id="policy-details-table" class="stratui-finalsale-table">
        <thead>
            <tr align="left">
                <th class="sectionHeadingGrayBG" colspan="2">
                    Policy Details
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="control-label">
                    Named Insured
                </td>
                <td>
                    <span class="text" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_InsuredOrPrincipal_GeneralPartyInfo_NameInfo_PersonName_GivenName">2V2D</span>&nbsp;<span class="text" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_InsuredOrPrincipal_GeneralPartyInfo_NameInfo_PersonName_Surname">IATEST</span>
                </td>
            </tr>
            <tr>
                <td class="control-label">
                    <span class="stratui-required">*</span><span>Policy Effective Date</span>
                </td>
                <td>
                    <span class="text" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_ContractTerm_EffectiveDt_View">08/15/2010</span>
                </td>
            </tr>
            <tr style="display: none;"><td class="stratui-finalsale-table-control finalSaleTDWidth"><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_ContractTerm_EffectiveDt">Policy Effective Date</label></td><td><input type="text" format="^(((0[13578]|(10|12))/(0[1-9]|[1-2][0-9]|3[0-1]))|(02/(0[1-9]|[1-2][0-8]))|((0[469]|11)/(0[1-9]|[1-2][0-9]|30)))/(19[0-9]{2}|2[0-9]{3})$" class="required regex stratui-control-text valid" name="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_ContractTerm_EffectiveDt" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_ContractTerm_EffectiveDt"></td></tr><tr><td class="stratui-finalsale-table-control finalSaleTDWidth"><span class="stratui-required">* </span><label class="control-label" for="FinalSale_PolicyDetails_Does_EffectiveDate_NeedToBe_Changed">Does the Effective Date need to be changed?</label></td><td><div class="stratui-vehicle-control-wrapper"><input type="radio" value="1" name="FinalSale_PolicyDetails_Does_EffectiveDate_NeedToBe_Changed" id="FinalSale_PolicyDetails_Does_EffectiveDate_NeedToBe_Changed" class="valid"><label>Yes</label><input type="radio" value="0" name="FinalSale_PolicyDetails_Does_EffectiveDate_NeedToBe_Changed" id="FinalSale_PolicyDetails_Does_EffectiveDate_NeedToBe_Changed" class="valid"><label>No</label></div></td></tr><tr><td class="stratui-finalsale-table-control finalSaleTDWidth"><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_ContractNumber">Agent Code</label></td><td><span id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_ContractNumber" class="text">0A0165</span></td></tr><tr><td class="stratui-finalsale-table-control finalSaleTDWidth"><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_ContractTerm_DurationPeriod_NumUnits">Policy Term</label></td><td><select class="stratui-control-select valid" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_ContractTerm_DurationPeriod_NumUnits"><option value="6-Months">6 Months</option><option value="12-Months">12 Months</option></select></td></tr><tr><td class="stratui-finalsale-table-control finalSaleTDWidth"><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_comtravelersCountersignatureRequiredInd">Countersignature and/or non-resident information required</label></td><td><div class="stratui-vehicle-control-wrapper"><input type="radio" value="1" name="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_comtravelersCountersignatureRequiredInd" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_comtravelersCountersignatureRequiredInd" class="valid"><label>Yes</label><input type="radio" checked="checked" value="0" name="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_comtravelersCountersignatureRequiredInd" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Producer_ProducerInfo_comtravelersCountersignatureRequiredInd" class="valid"><label>No</label></div></td></tr><tr style="display: none;"><td class="stratui-finalsale-table-control finalSaleTDWidth"><span class="stratui-required">* </span><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_comtravelersCommissionCd">Countersignature Type</label></td><td><select class="stratui-control-select" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_comtravelersCommissionCd"><option selected="selected" value=""></option><option value="C">COUNTERSIGNING COMM GENERATED</option><option value="CN">C/S COMM GENERATED AND HO NON-RES FAC COMM PAYABLE</option><option value="E">COMMISSION EXCEPTION</option><option value="EN">COMM EXCEPT AND HO NON-RES FACILITY APPLIES</option><option value="N">HO NON-RES FACILITY COMM IS PAYABLE</option></select></td></tr><tr style="display: none;"><td class="stratui-finalsale-table-control finalSaleTDWidth"><span class="stratui-required">* </span><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_ContractNumber">Countersignature Agent Code</label></td><td><input type="text" class="stratui-control-text" maxlength="6" name="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_ContractNumber" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_ContractNumber"></td></tr><tr style="display: none;"><td class="stratui-finalsale-table-control finalSaleTDWidth"><span class="stratui-required">* </span><label class="control-label" for="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_CommissionRatePct">Commission Rate Percentage</label></td><td><input type="text" format="(^100(\.0{1,2})?$)|(^([1-9]([0-9])?|0)(\.[0-9]{1,2})?$)" class="regex number stratui-control-text" name="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_CommissionRatePct" id="TravACORD_comtravelersPersPolicyQuote_comtravelersPersPolicyTransData_PersPolicy_Countersignature_CommissionRatePct"></td></tr>
        </tbody>
    </table>


            </div>

Test runner

Ready to run.

Testing in
TestOps/sec
jQuery raw
$("#finalSaleDownPaymentTable td:eq(0)").width($("#policyDetailsContainer table td:eq(0)").width());
$("#finalSaleDownPaymentTable td:odd").css("border-color", "#fff");
ready
jQuery cached selector
var $tbl = $("#finalSaleDownPaymentTable");
$tbl.find("td:eq(0)").width($("#policyDetailsContainer table td:eq(0)").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready
jQuery cached selector 2
var $tbl = $(document.getElementById("finalSaleDownPaymentTable"));
$tbl.find("td:eq(0)").width($("#policyDetailsContainer table td:eq(0)").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready
jQuery cached selector 3
var $tbl = $(document.getElementById("finalSaleDownPaymentTable"));
var $div = $(document.getElementById("policyDetailsContainer"));
$tbl.find("td:eq(0)").width($div.find("table td:eq(0)").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready
jQuery cached selector 4
var $tbl = $(document.getElementById("finalSaleDownPaymentTable"));
var $divtbl = $(document.getElementById("policyDetailsContainer")).find("table");
$tbl.find("td:eq(0)").width($divtbl.find("td:eq(0)").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready
jQuery cached selector 5
var $tbl = $(document.getElementById("finalSaleDownPaymentTable"));
var $divtbl = $(document.getElementById("policyDetailsContainer")).find("table");
$tbl.find("td:eq(0)").width($divtbl.find("td:eq(0)").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready
jQuery cached selector 6
var $tbl = $(document.getElementById("finalSaleDownPaymentTable"));
var $divtbl = $(document.getElementById("policy-details-table"));
$tbl.find("td:eq(0)").width($divtbl.find("td:eq(0)").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready
jQuery cached selector 7
var $tbl = $(document.getElementById("finalSaleDownPaymentTable"));
var $divtbl = $(document.getElementById("policyDetailsContainer")).find("table");
$tbl.find("td:eq(0)").width($divtbl.find("td:first").width());
$tbl.find("td:odd").css("border-color", "#fff");
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.