Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am working with billing controller , in a start of view i select a value from drop down list from two option "cash on delivery " / "check/card payment "

in the end of the billing view i need this value to conformation of delivery and payment

but this value get null


PmtID is drop down list id

and

conformyn is @html editfor()....

need a healp to solve this

What I have tried:

jquery

$(function () {
			$("#conformyn").change(function () {
				var newcrg = ($("#conformyn").val());
				if (newcrf !== "") {
					var	jbi =  ($('#PmtID').val());
							if ( jbi = 1) {
								$(".Port").show()
								$(".pod1").show()
								$(".cod1").show()

								$(".pOorg1").show()
								$(".pOorgCuntry1").show()

								$(".Fdd1").show()
								$(".Fddcuntry1").show()
							}
				}
			});
		});


<td>
                    @Html.DropDownListFor(m => m.PmtID, ViewBag.payas SelectList, "-- Payment Type -- ", new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.PmtID, "", new { @class = "text-danger" })

                </td>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900