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 4 days ago.
Improve this question
enter image description here
enter image description here
I can't edit the html as I am using another system. I'm trying to change the value of an input field without an id with the value of a drop-down by clicking button. I'm really stumped on the no id part.
See images to see if you have any suggestions.
Thank you as I am new to Java.
I tried document.queryselector, but don't know how to use it.
I can only use basic Java.
Related
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 1 year ago.
Improve this question
I have 3 icons
and html part is
Need these 3 icon click ?How to do this, its have same class name, same id
You can use the src attribute for this. I could see in the html image that there are two diff type of icons - GlobalCOnfig and Customer. SO you can do something like:
cy.get('[src*="/static/media/GlobalConfig"]').click()
cy.get('[src*="/static/media/Customer"]').click()
If you want to address the first one of these use .eq(0), for the 2nd .eq(1)and so on.
cy.get('#panelid-header).eq(0).click()
If you want to click all of them in succession
cy.get('#panelid-header).each(($el) => {
cy.get($el).click()
})
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 1 year ago.
Improve this question
Hey guys i am building dice roller website using random in javascript but after setting attributes for dice image i am getting file not found error.Images are stored like images/dice.png
your actualy seting the image's source to the str randomImg rather then the variable's value what you want to do is remove the "" that make it a string and use the variable
so the last line of the js would look like document.querySelectorAll[0].setAttribute('src',randomImg)
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 5 years ago.
Improve this question
I've would like to make a really simple form validation is JS.
I've created a function with if statements inside,while everything is ok it should display nothing and when something is not right (number in a name input for e.g)
a message under a certain input should be displayed.Right now it sometimes work,sometimes not.
If anybody could look at my code and tell me what's wrong would be really helpful
Here's my live version
Here's the code
You are using name="name-surname" twice (in two different input tags), which prevents the values to be sent properly. Use the same values for name as the values for the IDs
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 attempting use jQuery to simulate the process of pasting this link
steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M191782551910023971A6657788912D9818426115975581183
into the input field at https://beta.glws.org/ and clicking the "Check" button in order to acquire this result.
The following is my code
$('input').select().val("steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M564455421073965484A6657119277D16476560725308262707");
$('.btn-check:contains("Check")').trigger("click");
but it doesn't work as it should and I get THIS instead of the desired result :(
How do I fix this?
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
Hey guys actually i'm trying to give my website users a possibility to click on a button and have some predefined text, in my case contact informations, to the clipboard.
These informations are already given in a div tag with the id="footer" and i want to fetch those or predefine them manually in syntax.
At the end of the page is a scissor, this is a after:element, this element ill change to a link or anything other so i can make it work.
Here's a link to the site
You can try this jquery plugin:
https://github.com/zeroclipboard/zeroclipboard
This makes it possible to copy text to youre clipboard with a button.