How to do a function with a select option value [closed] - javascript

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have a form with two input select, the second input only can be enable if the first one was selected. And I'm having doubts. I tried to do an onclick event, but failed. Can someone help me? (sorry for the broken english)

Check out dependsOn if you are willing to use jQuery. It does most of the heavy lifting for you.

Related

How i change text with Tampermonkey? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
https://prnt.sc/r9zh7k
I want change the 0,00 for another value, can anyone helps?
You can try something like
document.querySelector('[data-v-c35c6530]').innerHTML = "new text";
if you link the site, I can verify this will work.

How to remove lag when using more than 50,000 options in <select> tag in html?? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am fetching options for the dropdown menu from database.
I have already used select2.js but it is not working.
Whenever I click on the dropdown menu the page stops responding.
You shouldn't use that many options. This is not only slow, but also uncomfortable.

How to change Browser button name? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
As I am new in UI development ,Kindly help to provide solution. How to change the Browser button name by using jquery.
That would be $('selector').text('some other name')
If your element is an <input>, then you can use $('selector').val('some other name')

A Mistake in my Codecademy Codebit, Not Sure What [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I do NOT have code here, as for it is going to take up too much space. It is an error in JavaScript as for it won't run anything in it, aswell as jQuery.
Click here if you wanna live...
Your problem is here I think:
.replace('function mName1()'),('?Method??-Custom?','function')
that comma needs to be a period and I'm guessing replace needs called.
.replace('function mName1()').replace('?Method??-Custom?','function')

Don't understand how Google's infinite load example works [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Would anyone be willing to explain how the following example works?
http://scrollsample.appspot.com/items
I don't understand how the URL gets updated (changes from /items?page=2 to /items?page=3)
I also do not understand how the rel tags get updated either (prev/next/canonical)
Thanks for any help you can provide.
Check out http://scrollsample.appspot.com/static/main.js
and look for the initPaginator function. There's a call to history.replaceState.
history.replaceState allows you to update the address bar without a page change.

Categories