Click here to Skip to main content
15,885,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to make a button with value n power 2 and n power 3 if i am using any tag inside value it is taking it as a string.




<html>
<body>
<button class="extra6" value="n2">n2</button>
<button class="extra7" value="n3">n3</button>
</body>
</html>
Posted

1 solution

You can use this way for setting the way you want and take the text in button into consideration when you use it :

HTML
<html>
<body>
<button class="extra6">n<sup>2</sup></button>
<button class="extra7">n<sup>3</sup></button> 
</body></html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900