element
element copied to clipboard
[Bug Report] how to access el-button in JS
Element UI version
2.15.1
OS/Browsers version
Chrome Version 103.0.5060.114 (Official Build) (64-bit)
Vue version
2.6.10
Reproduction Link
https://codepen.io/ziyoung/pen/LKNBqB
Steps to reproduce
var nodes = document.getElementsByTagName("el-button"); for(var i = 0; i < nodes.length; i ){ nodes[i].disabled = true; }
What is Expected?
el-button element should be access in js/jQuery
What is actually happening?
I am getting null value
src="https://unpkg.com/vue/dist/vue.js"
👆it cannot find vue dist resource.
using this, it will be ok. or any version with dist at sorce code.
-src=https://unpkg.com/[email protected]/dist/vue.js