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

  • Home
  • SEARCH
  • 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 6357435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:09:52+00:00 2026-05-24T23:09:52+00:00

This should be simple but is boggling me for some reason. I’m sure it’s

  • 0

This should be simple but is boggling me for some reason. I’m sure it’s syntax thing I’m messing up.

I have a bunch of Submit buttons on a page. (It is a Survey website). Each submit button goes with a specific part of the form, so the button is disabled until until the required elements are filled out. In order to help me tie the correct submit button to the correct elements, I have the ID and NAME set to include the word “submit” plus the GUID of the question in the database. (This is an ASP.NET website). So for example, when ASP.NET renders the page, it creates this:

<input type="submit" id="MainContent_ctl00_submitc03d5172-f7fa-4e9c-a762-3261461befbd" value="Submit Response" name="ctl00$MainContent$ctl00$submitc03d5172-f7fa-4e9c-a762-3261461befbd">

I really just want to grab anything that has an ID (or a name) that ends with “submitc03d5172-f7fa-4e9c-a762-3261461befbd”.

Bear in mind that each GUID of each button is different, so I pass the GUID to the function.

My javascript function looks like this:

function enableSubmit(id) {
    $('input[id$="submit" + id]').button('enable'); 
}

But that is not working, and I don’t know why. Please 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-05-24T23:09:54+00:00Added an answer on May 24, 2026 at 11:09 pm

    Try this

    function enableSubmit(id) {
        $('input[id$="submit' + id + '"]').attr('disabled', false); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be a really really simple thing, but for some reason it is
This should be simple but I cannot figure it out. I have this very
I think this should be simple but I am having some difficulty implementing it.
This should be simple, but what is the correct syntax for an Oracle sqlldr
I really have no idea how this is done, it should be simple but
I know this should be simple and I should know it but it's eluding
This should be a simple question, but I haven't been able to find a
This should be easy, but I'm not sure how to best go about it.
It seems like this should be straightforward but I'm boggling. I've got my listview
This should be simple but I'm a noob and I can't for the life

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.