html - cshtml radiobuttons disable -


i'm developing mvc project, have cshtml file has radiobuttons page. when disable 1 of them, other one's position changed. sliped little left (font decrease) how can prevent ? enter image description here

my radiobuttons:

<td>     @html.radiobuttonfor(model => model.geta, true, new {id = "9", onclick = "", data_bind = "value:geta" }) true     @html.radiobuttonfor(model => model.getb, false, new {id = "10", onclick = "", data_bind = "value:getb" }) false </td>  

i solved this: in project f_disable function load disable.png disabled radiobutton , create new id. reached attributes new id , changed disable.png width , padding in javascript.

document.getelementbyid("9_readonly").style.width = "15px";   document.getelementbyid("10_readonly").style.width = "15px"; document.getelementbyid("9_readonly").style.paddingleft = "3px";  document.getelementbyid("10_readonly").style.paddingleft = "6px"; 

enter image description here


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -