asp.net mvc 4 - dynamically change style for html helper in mvc4 -



asp.net mvc 4 - dynamically change style for html helper in mvc4 -

how can alter style of html helper dynamically because in doing language alter font sizes diferent each , every language , how can alter styles dynamically

@html.labelfor(u => u.username) @html.textboxfor(u => u.username) @html.validationmessagefor(u => u.username) @html.labelfor(u => u.username) @html.textboxfor(u => u.password) @html.validationmessagefor(u => u.password)

thanks in advance

i think looking this:

@html.labelfor(u => u.username, new {@class = "my-class"}); ... <style> .some-language {font: 1em;} .another-language {font: 2em;} </style> <script> ("#somebutton").click(function(){ $(".my-class").addclass("some-language"); }) ... </script>

asp.net-mvc-4

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -