Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7751993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:41:25+00:00 2026-06-01T11:41:25+00:00

i have form where i have text box value and link (add). when user

  • 0

i have form where i have text box value and link (add). when user enteres data in to textbox and click add it should add entered text to textArea on the same view. I have tried doing this with ajax.actionlink but i can’t seem to figure out how too pass the entered text to parameter. can anyone have another idea that i can try..i can’t use Ajax.beginForm because i have html form already.

Thank you in advance.

here is html code that i have so far with ajax action link.

                    <div class="editor-label">
                        <%: Html.Label("DefectID / FeatureID")%> <%: Html.TextBox("DefectID", "", new { @class = "required" })%> <%: Ajax.ActionLink("Add", "InsertDefectIDs", new AjaxOptions { UpdateTargetId = "DefectIds" }) %><%--<input type="button" name="add" value="Add" />--%>
                    </div>

                    <div class="editor-field">
                        <%: Html.TextAreaFor(model => model.DefectIds, new { rows = 5, cols = 12, @readonly = "true" })%>
                        <%: Html.ValidationMessageFor(model => model.DefectIds)%>
                    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:41:26+00:00Added an answer on June 1, 2026 at 11:41 am

    You should be able to something like the following:

    HTML

    <div class="editor-label">
        <%: Html.Label("DefectID / FeatureID")%> 
        <%: Html.TextBox("DefectID", "", new { @class = "required" })%> 
        <input type="button" name="add" value="Add" onclick="AddDefectId();" />
    </div>
    
    <div class="editor-field">
        <%: Html.TextAreaFor(model => model.DefectIds, new { rows = 5, cols = 12, @readonly = "true" })%>
        <%: Html.ValidationMessageFor(model => model.DefectIds)%>
    </div>
    

    Javascript

    <script type="text/javascript">
        function AddDefectId() {
            var defectId = document.getElementById('DefectId').value;
    
            if(defectId != "")
                 document.getElementById('DefectIds').value += defectId + ","
    
            document.getElementById('DefectId').value = "";        
        }​
    </script>
    

    Here is a straight html/javascript example: http://jsfiddle.net/zJpRA/6/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some text in a link title and also a form box and
On an HTML form I have INPUT text box followed by a link, then
In my form I have some TextBoxes. Once the value of TextBox is changed
I have a form in which i have a text box for email and
I have a C# form that has a text box that needs to constantly
i have a text box on my form. I want to write 0x31 as
I have a web form where I have a textbox in which the user
I have to add a textbox inside a form that is composed of a
Click LINK1 --> modal popsup --> enter value in text-box --> click Submit/Process Click
I have a Form with TextBox on it like this: Form f = new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.