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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:33:37+00:00 2026-05-26T17:33:37+00:00

I’m using a Grails plugin for ajax upload, http://grails.org/plugin/ajax-uploader , that is directly based

  • 0

I’m using a Grails plugin for ajax upload, http://grails.org/plugin/ajax-uploader, that is directly based on http://valums.com/ajax-upload/ . As you can see from the second link, it renders a div with ‘Upload a File’ as the text, which changes when hovered over and is clickable, and allows the selection of a file from the user’s computer. This text is defined in the plugin’s javascript file (I don’t see any way of configuring it), so to change it I am using JQuery in my .gsp where I use the plugin. However for some reason, by changing the text, the div is no longer clickable. Note if I change the text in the javascript file for the plugin, it is fine and does not break, so there is nothing relying on the actual text being what it is. But I do not want to change it in the javascript file, as: a) I don’t want to alter the plugin and b) I want to internationalize the text and not have it defined in the js file.

on my page I am doing

<script>$(".qq-upload-button").text("Click to select or drag files here");</script>

Note I also tried this as I thought maybe it was a timing issue.

<script>
  $(document).ready(function () {
 $(".qq-upload-button").text("Click to select or drag files here");
  } );
 </script>

In both cases the text correctly changes, but the div is no longer clickable or reacts to hovering.

  • 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-26T17:33:38+00:00Added an answer on May 26, 2026 at 5:33 pm

    If I look at .qq-upload-button in my browser’s DOM inspector, it looks like this:

    <div class="qq-upload-button" style="…">
        Upload a file<input multiple="multiple" type="file" name="file" style="…">
    </div>
    

    It has two children: a text node that says “Upload a file”, and a file input that holds the files to be uploaded.

    When you call .text() on .qq-upload-button, its content (the text along with the input) is replaced completely.

    jQuery (as far as I know) doesn’t have a way to manipulate text nodes. But, you can safely change the text of the button like this:

    $('.qq-upload-button').contents(':first').get(0).nodeValue = "…";
    

    Or, less jQuerily:

    $('.qq-upload-button')[0].firstChild.nodeValue = "…";
    

    Another option would be to specify the text of the button when you create the FileUploader. The template option is undocumented, but works in the current version:

    new qq.FileUploader({
        template: '<div class="qq-uploader">' + 
            '<div class="qq-upload-drop-area"><span>Your text here</span></div>' +
            '<div class="qq-upload-button">Your text here</div>' +
            '<ul class="qq-upload-list"></ul>' + 
         '</div>',
    });
    

    (I got the default template from the file upload plugin source)

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build

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.