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 9011443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:43:56+00:00 2026-06-16T02:43:56+00:00

I have to take agent details there are three views Add, Edit and View-All.

  • 0

I have to take agent details there are three views Add, Edit and View-All.

The Add form works as expected

 <script>
   $(document).ready(function(){

     var ruleSet1 = {
       required: true,
       number: true
     };

     $("#question").validate({
       rules: {
         agent_cheque_no: ruleSet1,
         pincode :ruleSet1,
       }
     });
   });
 </script>  

 <div class="control-group">
   <label class="control-label"> pincode *</label>
   <div class="controls">
     <input class="input-xlarge" type="text" id="pincode" placeholder="pincode" required name="pincode">
   </div>
 </div>

The code is not functioning correctly in the Edit view (as follows):

 <div class="control-group">
   <label class="control-label"> Pincode *</label>
   <div class="controls">
     <input class="input-xlarge" type="text" id="pincode" value="<?php echo $row->agent_pincode; ?>" placeholder="State" required name="pincode">
   </div>
 </div>

Thanks for the help.

  • 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-16T02:43:58+00:00Added an answer on June 16, 2026 at 2:43 am

    make sure your both form ID is same because for edit form your form id may be different and validation code isnt write.

    <form id="same_as_add">
         <div class="control-group">
              <label class="control-label"> Pincode *</label>
              <div class="controls">
                <input class="input-xlarge" type="text" id="pincode" placeholder="State" required name="pincode">
              </div>
            </div>
    <form>

    When you edit it make sure for below form declaration

    
    <form id="same_as_add">
         <div class="control-group">
              <label class="control-label"> Pincode *</label>
              <div class="controls">
                <input class="input-xlarge" type="text" id="pincode" value="<?php echo $row->agent_pincode; ?>" placeholder="State" required name="pincode">
              </div>
            </div>
    <form>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a situation where i have to take input(form) from user. After continue
Is there any way to have to tabcontrol take the size of the largest
I have a problem with a script timing out while fetching data form a
I have written a small script with which I take the name of a
I have a feedback form which will take a couple of user inputted fields
I have to take 2 values from DateTimePicker and then compare their values with
Actually I have to take the sequence number in $Revisions field.
I'm writing an application which have to take a picture and send it to
As a web developer I also have to take the Android and iOS web
I am struggling with a problem in assembly, where I have to take the

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.