with ie6-ie7-ie8
function getInputsByValue(value) { var allInputs = document.getElementsByTagName("input"); var results = []; for(var x=0;x<allInputs.length;x++) if(allInputs[x].value == value) results.push(allInputs[x]); return results; }
with modern browsers ie9+ (? not sure for ie9 actually) :
document.querySelectorAll("input[value=something]");
Related Posts:
- Edit webpage with javascript trick – how to “unedit”?
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- Is it possible to write data to file using only JavaScript?
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Is it possible to write data to file using only JavaScript?
- How to make JavaScript execute after page load?
- Set cookie and get cookie with JavaScript
- Which is better: or
- Onclick javascript to make browser go back to previous page?
- How to make JavaScript execute after page load?
- Why is my Javascript not working?
- How can I get the values of data attributes in JavaScript code?
- Javascript: getElementById vs getElementsById (both works on different pages)
- mailto using javascript
- mailto using javascript
- Mailto using Javascript?
- How to change css property using javascript
- javascript close current window
- I am trying to make a simple toggle button in javascript
- How to call a JavaScript function within an HTML body
- How to save user input into a variable in HTML and JavaScript
- Hiding a button in Javascript
- Show/hide ‘div’ using JavaScript
- How to make JavaScript execute after page load?
- Get HTML code using JavaScript with a URL
- Calculate percentage Javascript
- How to display image with JavaScript?
- Resize image with javascript canvas (smoothly)
- JavaScript function onhover in
- Check if an element contains a class in JavaScript?
- Hide element by class in pure Javascript
- How to play a mp3 using Javascript? [duplicate]
- mailto using javascript
- Function not defined javascript
- How to submit a form with JavaScript by clicking a link?
- How to call a REST web service API from JavaScript?
- Check a radio button with javascript
- AppendChild() is not a function javascript
- How can I change an element’s class with JavaScript?
- JavaScript: Get image dimensions
- Why write script type=”text/javascript” when the mime type is set by the server?
- javascript window.location in new tab
- How to create a hidden in JavaScript?
- How do I programmatically set the value of a select box element using JavaScript?
- How can I capture the right-click event in JavaScript?
- How do I clear the content of a div using JavaScript?
- Open source social media icons to download and use on website? [closed]
- What does In html mean
- Center image horizontally within a div
- Prevent line-break of span element
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- How to align iframe always in the center
- Alternative to iFrames with HTML5
- Responsive image map
- How to wrap text around an image using HTML/CSS
- Create table with jQuery – append
- Get checkbox value in jQuery
- Including external HTML file to another HTML file [duplicate]
- CSS list-style-image size
- Can’t fix: ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags
- How to disable auto-play for local video in iframe
- Styling an input type=”file” button
- How to stick footer to bottom (not fixed) even with scrolling
- How to semantically add heading to a list
- Multiple distinct pages in one HTML file
- How to change the background-color of jumbrotron?
- How to create a HTML Cancel button that redirects to a URL
- How to center links in HTML
- Bootstrap Columns Not Working
- How to center an unordered list?
- Video auto play is not working in Safari and Chrome desktop browser
- How can I change the thickness of my
tag- Best way to center a
on a page vertically and horizontally?- Find out whether radio button is checked with JQuery?
- Display text on MouseOver for image in html
- How to make a div 100% height of the browser window
- How can I embed a YouTube video in a WordPress template page?
- In which directory do I find the HTML file of my wordpress pages?
- Preserve white-space in Page
- HTML / Javascript in custom field textarea?
- The value of attribute [ data-type ] must be in double quotes – custom html widget error
- Adding JavaScript to a WordPress website
- Insert “javascript:void(0);” into URL
- Ajaxify This Code
- Add Attribute to p Tag of Post Content
- How to insert HTML/JavaScript form into WordPress page? [closed]
- custom html in page change in browser
- Add Adsense to a website but the server responds with error 510 [closed]
- Link to page with posts of specific type
- Allow Access To Subfolder Of HTML For Logged In Visitors
- Removing Line Break Tags from a Page
- Using Tags Instead of Categories for site structure
- Tidy HTML formatting in Gutenberg HTML blocks
- Unable to autoplay and loop a cinemagraph from Imgur
- Target a specific container to style on WordPress storefront theme
- standard callback function for wp_list_comments
- How to replace a specific html tag in bulk?
- I need help implement a Javascript code into the PHP file
- Adding Custom HTML/CSS/JS code in specific page
- How do I cycle a JS function in WordPress? [closed]