Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

318
Views
How to remove div tags based on login role in PHP and JavaScript

It is working but once I reload the page it shows the div tag I removed in less than a sec, I should have used display:none but any user can go to inspect element and change the the display to block

here is my code

<?php
//if ($row['login_type'] == 'Advertiser'){
?>
        <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script>
     $(document).ready(function() {
     $(window).on("load", function() {
    
    $("#Div1").remove();
    $("#Div2").remove();
    $("#Div3").remove();
  }) 
 });
</script>
<?php }?>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!