Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- if ($("#ProductName").val().toString() == "") {
- $("#pricingSectionDisplay").hide;
- $("#pricingSectionProductName").val("");
- }
- else {
- $("#pricingSectionDisplay").show;
- $("#pricingSectionProductName").val($("#ProductName").val());
- }
- if ($("#PackSize").val().toString() == "") {
- $("#pricingSectionDisplay").hide;
- $("#pricingSectionPackSize").val("");
- }
- else {
- $("#pricingSectionDisplay").show;
- $("#pricingSectionPackSize").val($("#PackSize").val());
- }
- });
- function pricingSectionDisplay() {
- if ($("#ProductName").val().toString() == "") {
- $("#pricingSectionDisplay").hide;
- $("#pricingSectionProductName").val("");
- }
- else {
- $("#pricingSectionProductName").val($("#ProductName").val());
- }
- if ($("#PackSize").val().toString() == "") {
- $("#pricingSectionDisplay").hide;
- $("#pricingSectionPackSize").val("");
- }
- else {
- $("#pricingSectionPackSize").val($(PackSize).val());
- }
- }
- @Html.TextBoxFor(m => m.ProductName, new { @class = "form-control", @id = "ProductName", onblur = "pricingSectionDisplay()" })
- @Html.TextBoxFor(m => m.PackSize, new { @class = "form-control", @id = "PackSize", onblur = "pricingSectionDisplay()" })
- $("#pricingSectionDisplay").hide;
- $("#pricingSectionDisplay").hide();
- @Html.TextBoxFor(m => m.ProductName,
- new { @class = "form-control", id = "ProductName",
- onblur = "pricingSectionDisplay()" })
- @Html.TextBoxFor(m => m.ProductName,
- new { @id = "ProductName",
- onblur = "pricingSectionDisplay()" })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement