SyntaxFix
Write A Post
Hire A Developer
Questions
<script type="text/javascript"> $(document).ready(function() { showWarning('@ViewBag.Message'); }); </script>
You can use ViewBag.PropertyName in javascript like this.