I have some code that works in jquery 1.3.2 but does not in 1.4.1. Not
sure where this should go, just started using jquery when 1.3.2 came
out. Is this the right forum? jquery site still pointing here, but I
thought they moved off of google?

        $(document).ready(function() {
            alert("document ready!");
            $("#lineItems input:last").bind("change",
appendLineItem).focus();
            //window.onbeforeunload = stopRefresh;
        });

        function appendLineItem() {
            alert("prior value:"+priorValue);
            if ($(this).val() != priorValue) {
                priorValue = $(this).val();
                showAlert = true;
                lineCnt++;
                var len = $("#lineItems input").length + 1;
                $("#lineItems").append('<tr><td><input type="text"
class="normal" name="_Override_SSN_' + len +
                '" /></td><td><input type="text" class="normal"
name="_Override_Perscription_Number_' + len + '" /></td></tr>')
                $(this).unbind("change", appendLineItem);
                $("#lineItems input:last").bind("change",
appendLineItem).focus();
            }
            else {
                $(this).val("").focus();
                return false;
            }
        }


                    <table id="lineItems">
                        <tr>
                            <th>
                                Member SSN
                            </th>
                            <th>
                                Perscription Number
                            </th>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" class="normal
required" name="_Override_SSN_1" />
                            </td>
                            <td>
                                <input type="text" class="normal
required" name="_Override_Perscription_Number_1" />
                            </td>
                        </tr>
                    </table>


Terry

-- 
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.

Reply via email to