Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery replace text in button

$("#thebutton span").text("My NEW Text");
Comment

jquery replace text in button

<input type='button' value='Add' id='btnAddProfile'>
$("#btnAddProfile").attr('value', 'Save'); //versions older than 1.6

<input type='button' value='Add' id='btnAddProfile'>
$("#btnAddProfile").prop('value', 'Save'); //versions newer than 1.6

<!-- Different button types-->

<button id='btnAddProfile' type='button'>Add</button>
$("#btnAddProfile").html('Save');
Comment

PREVIOUS NEXT
Code Example
Javascript :: update formgroup value angular 
Javascript :: cheerio load from file 
Javascript :: newtonsoft.json string to object 
Javascript :: react native run on device command line 
Javascript :: array contains multiple js 
Javascript :: vuejs scroll to top 
Javascript :: javascript key pressed enter 
Javascript :: react native zindex issue on android 
Javascript :: javascript window.history.pushstate 
Javascript :: count div class in div jquery 
Javascript :: react cdn 
Javascript :: react query dev tools 
Javascript :: lottie react 
Javascript :: how get checkbox if checked in jquery 
Javascript :: remove axis tick ends d3 
Javascript :: close tab using jquery 
Javascript :: javascript check for property 
Javascript :: js get input from user 
Javascript :: dom click is not a function 
Javascript :: toggle in react 
Javascript :: jquery visible 
Javascript :: how do i make a link to direct me to a new page when i click on a button in react 
Javascript :: javascript check if object property exists 
Javascript :: remove empty element from array js 
Javascript :: dice roller javascript 
Javascript :: js array copy not reference 
Javascript :: difference between == and === in javascript 
Javascript :: usereducer hook react 
Javascript :: es6 check if the object is empty 
Javascript :: reactnative get height screen 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =