Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $today = date("m/d/Y");
- <div id="myDiv" class="col-md-6">
- <div class="alert alert-info" role="alert"><span class="glyphicon glyphicon-book" aria-hidden="true"></span> Passport <?php echo "<strong><a href=\"view_latest_passport.php?id=$id\"> $passport</a> / Passport Expiration Date:</strong> $passport_expiration"; ?></div>
- </div>
- <script type="text/javascript">
- if ($today == $passport_expiration)
- {
- document.getElementById("myDiv").Element.style.backgroundColor="green" ;
- }
- else
- {
- document.getElementById("myDiv").Element.style.backgroundColor="red";
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement