javascript - I have a textbox which I would like to allow my users to switch to a grid when they click a button. Is this possible in asp.net? -




as of have multiline textbox users. users able switch textbox grid layout when click button "switch grid". how can remove textbox , make grid layout appear in same place when click button? if user has inputed textbox/grid-layout, i'm okay inputs getting reset.

<asp:textbox id="txtvalue"  validationgroup="g1" textmode="multiline" runat="server" style="width:100%; max-width:100%; overflow-x:scroll; height:110px; white-space:nowrap; word-wrap:break-word;"></asp:textbox> 

you should put grid right after textbox , make grid default hidden css. don't forget assign id grid can grab later using jquery. when user click on switch grid button, have quite simple: first, make textbox hidden , make grid appeared.

i've made codepen here

`https://codepen.io/trgiangvp3/pen/jyvryj` 




wiki

Comments

Popular posts from this blog

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -

python - Minimize function with Scipy minimize -