How do I style text in JavaScript? The text is inside a function. I'm not sure how to do this.

I just want to give a class css to text. See guidance like this `<div class="btn btn-primary>See Guidance</div>`.

So I could change like padding, text color and background and it will be displayed like a button.

I'm just trying to put inside div between but nothing shows :(.

Here is the code :

```html
<script type="text/javascript">
        function validateFormLogin()
        {
            var min_length = <?php echo Min_Character;?>;
            var max_length = <?php echo Max_Character;?>;
            var error_message = "";

            var val_length = $("#username").val().length;
            if(val_length > 0)
            {
                if(val_length <  min_length )
                {
                    error_message = "Wrong Minimum Character! - <a href='http://localhost/guidance>See Guidance</a>.;
                    $("#result").html(error_message);
                    return false;
                }
                if(val_length  > max_length)
                {
                    error_message = ""Wrong Minimum Character! - <a href='http://localhost/guidance>See Guidance</a>. ";
                    $("#result").html(error_message);
                    return false;
                }
                success_message = "Please wait...";
                $("#result").text(success_message);
                return true;
            }
            else
            {
                error_message = "This field is required ";
                $("#result").text(error_message);
                return false;
            }
        }
</script>
```