javascript - How can i print custom message on bootstrap methods -


When I click on a button "click me" it changes to "loading" and it After loading, "loading is complete".

How do I change this text from "Save" and "Fully Loading" to "Loading" for "Successfully Saved"?

What do you want with the link

  & lt; Script type = "text / javascript" & gt; Click ($ ("# MyButton") (function () {$ (this). Button ('Loading'). Delay (1000) .Q (function () {$ (this). Button ('Full' ); $ (This) .dequeue ();});}); }); & Lt; / Script & gt; & Lt; Div class = "bs-example" & gt; & Lt; Button type = "button" class = "btn btn-info" id = "mybutton" data-full-text = "loading is complete" autocomplete = "off" & gt; Click me & lt; / Button & gt; & Lt; / Div & gt; Below the code you have the following:   

  & lt; Button type = "button" class = "btn btn-info" id = "mybutton" data-full-text = "loading is complete" autocomplete = "off" & gt; Click my & lt; / Button & gt;   

Data-Full-Text = "Loading Completed" is a property You can change the text here when the button is loaded.

Add the following property to add text when loaded:

  Data-loading-text = "loading-text ..."   < P> The product looks like this:    & lt; Button type = "button" class = "btn btn-info" id = "mybutton" data-loading-text = "your loading text" data-full-text = "your loaded text" autocomplete = "off" & gt; ; Click me & lt; / Button & gt;    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -