Want to add labels and textboxes on clicking a Href link

Posted by user1740184 on Stack Overflow See other posts from Stack Overflow or by user1740184
Published on 2012-10-16T04:57:07Z Indexed on 2012/10/16 5:02 UTC
Read the original article Hit count: 174

Filed under:
|
|
|
|

I am using code in view of MVC as below

 <div class="form-inline">
                <label class="control-label"><b>Length</b></label>
                <input type="text" name="Refinishing.Room.Length.Feet" id="Refinishing_Room_Length_Feet" style="width: 80px" class="floor-text" />Ft
            <input type="text" name="Refinishing.Room.Length.Inch" id="Refinishing_Room_Length_Inch" class="floor-text" />Inch
                <label><b>Width</b></label>
                <input type="text" name="Refinishing.Room.Width.Feet" id="Refinishing_Room_Width_Feet" class="floor-text" />Ft
             <input type="text" name="Refinishing.Room.Width.Inch" id="Refinishing_Room_Width_Inch" class="floor-text" />Inch<br />
                <a href="#">Add Room</a> / <a href="#">Remove Room</a>
            </div>

and I want to add the contents of "<div>" on clicking the link "Add Room". How can it be done?

© Stack Overflow or respective owner

Related posts about c#

Related posts about jQuery