Skip to content
Advertisement

How to write html tag inside blade form object label..?

I have to write “Name * : “, where astrix will be red. i am creating label as:

JavaScript

But this will result in:Name with html tag span tag.

thanks

Advertisement

Answer

For this you have to pass an array. Something like below:

JavaScript

And style this require class below way. Hope this should work.

JavaScript

Another way, UPDATED:

I think, this one you looking for. Use double quotes in span and inner style use single quotes.

JavaScript

This should work.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement