Im trying to add some css into java script alert message where alert message will get values to alert from php $_POST;. Please see the below code
$brandname = $_POST["brandname"]; echo " <script> alert ('Your brand $brandname successfully added into system & redirecting to brand list page'); window.location='http://localhost/im/carsale/brand_list.php'; </script> ";
what i wants to do is add h1 tag and change the color of $brandname value. So could any explain me how to do that.
The alert box is a system object, and not subject to CSS. To do this style of thing you would need to create an HTML element and mimic the alert() functionality. The jQuery UI Modal box does a lot of the work for you, working basically as I have described: http://jqueryui.com/dialog/