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:
.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.
css
.k-upload-button span { position: relative; left: -9999px; } .k-upload-button span:before { content: 'select file'; position: relative; left: 9999px; }
Comments
Post a Comment