javascript - Rename button text having no id -


i have html as:

<div class="k-button k-upload-button"> <input id="files" name="files" type="file" data-role="upload" autocomplete="off"> <span>select files...</span> </div> 

above html text (tags) cant change.

i want change text :

select files... 

to :

select file 

for tried:

$(".k-button.k-upload-button").find("span").text("select file"); 

but did not worked.

please me. how can change text???

edit1:

enter image description here

.k-upload-button span:before {     content: 'select file';      position: relative;      left: 4444px;     display: inline; } .k-upload-button span {     position: relative;    left: -4444px;   display: inline; } 

css solution

the span removed viewport , pseudo child put in place.

have example!

css

.k-upload-button span {     position: relative;     left: -9999px; } .k-upload-button span:before {     content: 'select file';     position: relative;     left: 9999px; } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -