Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input class="book_now_modal BClick" type="text" id="destinationFrom_modal" name="destinationFrom_modal" placeholder="@ViewBag.AmritsarList[0].Destination">
- $(".AClick").click(function () {
- //$(".BClick").attr("placeholder"," ");
- var s = parseInt($(this).attr('id'));
- var neededVAl = "@@ViewBag.AmritsarList"+"["+s+"]"+".Destination";
- alert(neededVAl);
- var b = $(".BClick");
- $(this).attr("placeholder",neededVAl);
- });
- var neededVAl = "@@ViewBag.AmritsarList"+"["+s+"]"+".Destination";
- var jsObject = @Html.Raw(Json.Encode(ViewBag.AmritsarList));
- $(".AClick").click(function () {
- var s = parseInt($(this).attr('id'));
- var neededVAl = jsObject[s].Destination;
- alert(neededVAl);
- $(this).attr("placeholder",neededVAl);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement