Created
May 27, 2019 15:13
-
-
Save savepong/205000e2f8c4786f07ec2aada07b9afb to your computer and use it in GitHub Desktop.
เปิด Modal จากลิงค์ # ด้วย javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function() { | |
if(window.location.href.indexOf('#myModal') != -1) { | |
$('#myModal').modal('show'); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment