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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -