How to change upload button text?

2 posts, 0 answers
  1. Tomaz
    Tomaz avatar
    10 posts
    Member since:
    May 2012

    Posted 13 Sep 2012 Link to this post

    Idea is to translate Ui so I need to change upload button text.
    Any idea?

    My code:

    $(document).ready(function () {
    $("#_UploadedFiles").closest(".k-upload-button").find("span").text("bla bla");

    Its work when I run code in Firebug.

  2. Justin
    Justin avatar
    4 posts
    Member since:
    Mar 2012

    Posted 14 Dec 2012 Link to this post

    You need to change the span, not the class itself.

    $('.k-upload-button span', '#_UploadedFiles').html('blah blah');

    closest behaves differently on different browsers because it's based on the DOM tree.
  3. UI for ASP.NET AJAX banner
Back to Top