Anil bhadula
Anil bhadula

Reputation: 203

want to see information in popup without textbox

i have information in text box but when i click button(show) then i want to show information in popup without text box how to do it?``

      <tr>
      <td>
      <?php echo $i; ?>
      </td>
      <td><?php echo $value['fullname']; ?></td>
      <td><?php echo $value['group_name']; ?></td>
      <td><?php echo $value['institute_name']; ?></td>
      <td><?php echo $value['dept_name']; ?></td>
      <td><?php echo $value['library_name']; ?></td>
      <td><?php echo $value['role']; ?></td>
      <td><?php echo $value['status']; ?></td>
      <td><?php if($edit_allowed) { ?>
      <a href= "<?php echo $this->baseUrl().'/user/eid/'.$value['user_id']; ?>"
      data-toggle="modal" data-target="#addhod">
      <button  class="btn btn-primary"> View profile</button>
      </a>  
      <?php } 
       ?>          
      </tr>

Upvotes: 2

Views: 114

Answers (2)

Ajay Raturi
Ajay Raturi

Reputation: 687

this can help you.apply the code in your coding.hope this will help you

<div data-role="popup" id="myPopup" class="ui-content">

Upvotes: 4

Аймен Ахмед
Аймен Ахмед

Reputation: 555

You can use jQuery to get informataion in the textbox and display it as you want.

HTML:

<input type="text" name="info" id="info" value="information" >
<a href="#" onclick="showMsg();return false;">click me</a>

jQuery:

<script>
 function showMsg(){
  var = $("#info").val();
  alert(var);
 }
</script>

Upvotes: 1

Related Questions