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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:36:23+00:00 2026-06-12T17:36:23+00:00

How to add a title for the JqueryUI dialog box for this case. This

  • 0

How to add a title for the JqueryUI dialog box for this case. This dialog box opens as per the model name in ruby on rails.

Example of the html page:

<%= link_to pro_generic_lookup_data_path("Enr::Rds::Section2009", format: :js), data: {remote: true} %>

Here, the pro_generic_lookup_data is have the option of uidialog box. So, it would open depend upon the model name("Enr::Rds::Section2009").

JavaScript

var generic_lookup_Enr_Rds_Section2009_selected = function(id, to_s) {
  var section_value = $(".cross-reference-section-value");
  var section_id = $(".cross-reference-section-value-id");
  var section_clear_img = $(".cross-reference-section-clear-img");
  section_id.val(id);
  section_value.text(to_s);
  section_value.css('display', 'inline');
  section_clear_img.css('display', 'inline');
  $(section_clear_img).on('click', function() {
    section_value.text('')
    section_id.val('')
    section_clear_img.css('display', 'none');
  });
  var question_link = $('#question_picker').attr('href');
  question_link = question_link.replace(/\?+$/, '');
  question_link = question_link + '?columns[enr_rds_section_id]=' + id;
  $('#question_picker').attr('href', question_link);
  $("#modal_popup").dialog("destroy");      
};

I have three fields like this same. So, I need to give a separate titles for all the three fields. Thanks!

  • 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-12T17:36:24+00:00Added an answer on June 12, 2026 at 5:36 pm

    Other than some basic formatting and using chained selectors where applicable, the code is fine.

    var generic_lookup_Enr_Rds_Section2009_selected = function(id, to_s) {
        var $section_value = $(".cross-reference-section-value");
        var $section_id = $(".cross-reference-section-value-id");
        var $section_clear_img = $(".cross-reference-section-clear-img");
    
        $section_id.val(id);    
        $section_value.text(to_s).css('display', 'inline');
    
        $section_clear_img.css('display', 'inline').on('click', function() {
            $section_value.text('')
            $section_id.val('')
            $section_clear_img.css('display', 'none');
        });
    
        var question_link = $('#question_picker').attr('href');
        question_link = question_link.replace(/\?+$/, '');
        question_link = question_link + '?columns[enr_rds_section_id]=' + id;
        $('#question_picker').prop('href', question_link);
    
        $("#modal_popup").dialog("destroy");      
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question Add a version number to the title of a LaTeX document spurred
I'm trying to add a close a jquery ui dialog box from an ajax
I can't seem to add a click event handler to the Dialog header/title. Something
I am trying to add a new button to a jquery UI Dialog box
I am tring do add a jqueryui dialog to my webpage, but when it
I ran into an interesting issue with jQueryUI autocomplete in a dialog box. My
I can not add button to this jquery ui dialog. if possible please give
Typically views appear to output anchors without 'title' attributes. How would you add 'title'
I try to add dots between the page title and the page number in
The title speaks for itself, but I would add some pointers I've noticed along

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.