Skip to content
Advertisement

Tag: jquery-selectors

Find and update in nested json object

I used this code to find the required portion from the json object from sJhonny’s Question Data Sample Function to find Use like so: This code is to select matching piece from the source. But what I want is to update the source object with new value and retrieve the updated source object. I want something like My code This

jQuery get specific option tag text

All right, say I have this: What would the selector look like if I wanted to get “Option B” when I have the value ‘2’? Please note that this is not asking how to get the selected text value, but just any one of them, whether selected or not, depending on the value attribute. I tried: But it is not

Advertisement