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

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -