If I want to change the class "btn-success" to "btn-warning" or update the color code to "#ffc107" upon a successful process, how can I achieve that?
Button ;
<button type="submit" name="teklifver" value="Teklif Ver" class="btn btn-block btn-success" id="teklifpasif">Teklif Ver</button>
PHP Code;
...
$insert=$query->execute(array(
"arac_id" => $arac_id,
"kullanici_adsoyad" => $kullcek['kullanici_adsoyad'],
"ihale_secenek" => $ihale_secenek
));
if($insert)
{
header("Location:index.php");
?>
<script>
// -------- Change to "btn-warning" ------------
</script>
<?php
}
else
{
echo "Did not work";
}
} ?>