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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:40:00+00:00 2026-05-15T00:40:00+00:00

I have a dialog form and when I open it I have the button

  • 0

I have a dialog form and when I open it I have the button “add a task”, I would like to keep this “name”, when I open the form from an empty case, but I want to have a button named “edit this task” when I open an already existing task.

I also want to send the form with this button when I push enter key, no matter where I am on the form.

Thank you.

  • 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-15T00:40:01+00:00Added an answer on May 15, 2026 at 12:40 am
    $('.ajouter-tache')
            .click(function() {
            if($(this).attr('id_tache')!=""){ 
                $('.ui-dialog-buttonpane button:eq(0) .ui-button-text').each(function(e, f){
                    $(f).html('Modifier la tache');
                })
            }
            else {
                $('.ui-dialog-buttonpane button:eq(0) .ui-button-text').each(function(e, f){
                    $(f).html('Ajouter une tache');
                })
            };
        })
    

    Here is what I did, it works but as I’m beginner and have not a lost of time to work on jQuery it kind of sucks, especially the selector redundancy and the each wich is useless (but I don’t know how to take only that element.)

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

Sidebar

Related Questions

I have a form and from this I call dialogPrintDiet.ShowDialog() which launchs my dialog.
I have dialog created like this $('#add_error').click(function(e) { $('<div>') .load('/someaction/format/html/') .dialog({ title: 'Some title',
I have a jQuery dialog form: $loading.dialog({ closeOnEscape: false, resizable: false, draggable: false, width:
In the dialog form below, I have 2 buttons: Save & Cancel. When user
I have a modal dialog where I place the contents of an html form
I have a small form that contains a jQuery UI dialog to ask for
I have a div containing a form. I use that div as a dialog
I have a dialog preference with a button on it that I want to
I have a dialog with this content: <RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content > <ScrollView android:layout_width=fill_parent android:layout_height=wrap_content
i am jsgrid i want have implemented the add row button. when i click

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.