-------

-------

  • NA
  • 213
  • 6.9k

how to show a particular content when click on apply button

Oct 21 2020 7:41 AM
I am trying to display vacancy title when click on apply button
when I click on apply button then show only angular vacancy developer details
when I click on apply button then show only htmlcss developer details
when I click on apply button then show only c/c++ developer details
when I click on apply button then show only java developer details
 
code
  1. @{    
  2.     int counter = 0;                   
  3. }    
  4.     
  5. <div class="container" style="margin-top:50px;">    
  6.     <h3>Job Openings</h3>    
  7.     <p>    
  8.         content paregraph <strong> </strong>    
  9.         <br />    
  10.         <br />    
  11.     </p>    
  12.     
  13.     <div class="row">    
  14.     
  15.         @foreach (var article1 in Model.Vacancy)    
  16.         {    
  17.             <div class="col-md-6">    
  18.                 <h5>@article1.vacancytitle</h5>    
  19.                 <text>@article1.vacancyposition</text>    
  20.                 <button style="margin-left:350px;" class="btn btn-light">Please Apply</button>    
  21.                 <hr />    
  22.             </div>    
  23.         }    
  24.     
  25.     </div>    
  26. </div>    
  27.     
  28. <div class="container-fluid">    
  29.     <div style="font-size:18px;">    
  30.     
  31.         @if (Model == null)    
  32.         {    
  33.             <table>    
  34.                 <tr>    
  35.                     <td>@ViewBag.message</td>    
  36.                 </tr>    
  37.             </table>    
  38.         }    
  39.         else    
  40.         {    
  41.             <div class="row">    
  42.                 @foreach (var article in Model.Vacancy)    
  43.                 {                       
  44.                     <div class="col-md-6">                          
  45.                         <div class="card" style="">    
  46.                             <div class="card-body">    
  47.                                 
  48.                                 <h5 class="card-title">@article.vacancytitle</h5>    
  49.                                     
  50.                                 <h6 class="card-subtitle mb-2 text-muted"><strong>Position</strong></h6>    
  51.     
  52.                                 <p class="card-text">@article.vacancyposition</p>    
  53.     
  54.                                 <h6 class="card-subtitle mb-2 text-muted"><strong>Experience</strong></h6>    
  55.     
  56.                                 <p class="card-text">@article.vacancyexperience</p>    
  57.     
  58.                                 <h6 class="card-subtitle mb-2 text-muted"><strong>Job Description</strong></h6>    
  59.     
  60.                                    
  61.                                 <h6 class="card-subtitle mb-2 text-muted"><strong>Job Required Skill</strong></h6>    
  62.                                                                
  63.                                 <button class="btn btn-success applylink">Apply</button>    
  64.                             </div>    
  65.                         </div>    
  66.                     </div>    
  67.                 }    
  68.             </div>    
  69.         }    
  70.     </div>    
  71. </div>   

Answers (1)