javascript - I am building a survey application using bootstrap,in that i have two image buttons thumbs up(likeq1()) and thumbs down(unlikeq1()) button -


i building survey application using bootstrap,in have 2 image buttons thumbs , thumbs down on page , when click thumbs button should selected , when click on thumbs down button should select button deselect thumbs button.and want validate user must select button without selecting should not process or navigate other page.

my code button :

<div class="row">     <div class="col-md-10" align="left">         <h5> products solve real world problems.</h5>     </div>     <div class="col-md-1">         <h4><button type="button" class="btn-link" value="0" id="like1" onclick="likeq1()" >         <span class="fa fa-thumbs-up" ></span>        </button></h4>     </div>     <div class="col-md-1">         <h4> <button type="button" class="btn-link" value="0" id="unlike1" align="right" onclick="unlikeq1()">         <span class="fa fa-thumbs-down" ></span>         </button></h4>     </div>  </div> 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -