Show Parameter Value in Modal Popup RRS feed

  • Question

  • User-797751191 posted


      I have below code . I want to show values of No & Id in Modal Popup

    function Pop(No, Id) {
    Friday, June 28, 2019 9:01 AM


  • User2103319870 posted

    I want to show values of No & Id in Modal Popup

    i guess you are using bootstrap modal dialog. if so then Add two controls as to Modal Body and assign value to it before opening modal diagpg

    Sample Code


    <!-- Button trigger modal -->
    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal1">
      Launch demo modal
    <!-- Modal -->
    <div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="modal1Label" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="modal1">Modal title</h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
         <div class="modal-body">
            <input type="text" name="" id="txtNo"><br/>
            <input type="text" name="" id="txtId">
          <div class="modal-footer">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

    Modified Javascript function

    function Pop(No, Id) {

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 28, 2019 1:40 PM