attempt to add function for click event handler fails with object required

attempt to add function for click event handler fails with object required

I have the following function as a click event handler.

  1.  $(document).on("click", "input[id *='submitReqSelect']", function (e) {
                debugger
                //alert("firing");
                var sDialog = "#AddSubDialog";
                var lineID = e.target.id.toString().substr(15);
                var selector = "input[id*='rb_'], #ReqInfoHolder" + lineID
                var ReqID = 0;
                var qty = 0
                var subLineNumber = $("#newSubLine" + lineID).val()
                $(selector).each(function () {
                    if ($(this).is(":checked")) {
                        debugger
                        ReqID = this.value;
                        var nomen = $("#prLine_PRLine_Nomenclature", "tr[data-pr-lines='prLineID-" + lineID + "']").val();
                        $("#suppliesNomen-0-" + lineID).val(nomen);
                        var ReqNum = $("#hdn" + ReqID.toString() + "_ReqNum").val();
                        $("#ReqNumber-0-" + lineID).val(ReqNum);
                        var dodic = $("#prLine_PRLine_DoDIC", "tr[data-pr-lines='prLineID-" + lineID + "']").val();
                        $("#DoDIC-0-" + lineID).val(dodic);
                        qty = $("#hdn" + ReqID.toString() + "_qty").val();
                        $("#newQty" + lineID).val(qty);
                        return false
                    }
                });
                HideDialog(sDialog);
                $(document).on("click", '#btnAdd' + lineID, PopulatePRLines(subLineNumber, lineID, ReqID, qty));
            });
The last line of the function attempts to add a click event handler to btnAdd24 (lineID is 24)  Each time I get back Object required.  I checked and verified that the function exists and the button exists.  So what object is required?