10 examples of 'jquery change button text' in JavaScript

Every line of 'jquery change button text' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
34function change_button(elements) {
35 console.log(elements);
36 var config = {'name': elements};
37 for(var i in listen_list[elements]){
38 config[i] = ($('#' + i).prop(listen_list[elements][i]));
39 }
40 console.log(config);
41 // change the settings[configs]
42}
155function setCallButtonText(text) {
156 $("#callBtn").text(text).prop('disabled', false);
157}
225function updateButton() {
226 var v = $("#input-string, #input-file-proxy, #query").filter(":visible").val();
227 $("button[type = 'submit']").attr("disabled", $.trim(v).length == 0);
228}
1function typeText(selector, text) {
2 $(selector).val(text);
3 $(selector).trigger('input');
4}
7function click(text) {
8 return element(by.buttonText(text)).click();
9}
53function clickButton(id) {
54 const element = document.getElementById(id);
55
56 if (element) {
57 element.click();
58 }
59}
119function testChangeByButtonClick(fixture, element, buttonClass) {
120 var changeCallback = jasmine.createSpy('changeCallback');
121
122 element.pickList({ change: changeCallback });
123
124 var list1 = buttonClass.indexOf('btn-add') === 0 ? '.source' : '.target';
125 var list2 = buttonClass.indexOf('btn-add') === 0 ? '.target' : '.source';
126
127 //when
128 var firstItem = fixture.find(list1 + ' .ui-selectee').first();
129
130 //then
131 runs(function () {
132 firstItem.trigger('mousedown');
133 firstItem.trigger('mouseup');
134 });
135
136 waitsFor(function () {
137 return firstItem.hasClass('ui-selected');
138 }, 'first item should be selected', 500);
139
140 runs(function () {
141 fixture.find('.pick-button-column .' + buttonClass).first().click();
142 });
143
144 waitsFor(function () {
145 return fixture.find(list2 + ' .ui-selectee').first().data('key') === firstItem.data('key');
146 }, 'item should be moved to top of opposing list', 500);
147
148 runs(function () {
149 expect(changeCallback).toHaveBeenCalled();
150 });
151}
67function switchText() {
68 var switcherText = (getActiveStyleSheet() == "elastic") ? "Switch to Fixed Layout" : "Switch to Elastic Layout";
69 $('#switchlink span').text(switcherText);
70}
94function updateButton() {
95 var childs = $("#updates-wrapper").children();
96 var activeChild = $("#updates-wrapper").children(".graph.updates:visible");
97 var activeindex = parseInt($(activeChild).attr('id').split("-")[1]);
98 var $prevButton = $(".prev");
99 var $nextButton = $(".next");
100 $prevButton.removeClass("opacity-7");
101 $nextButton.removeClass("opacity-7");
102 if (activeindex === 0) {
103 $prevButton.addClass("opacity-7");
104 }
105 if (activeindex + 1 >= childs.length) {
106 $nextButton.addClass("opacity-7");
107 }
108}
19public switchChange(args) {
20 this.rounded = !this.rounded;
21}

Related snippets