أرسل تقرير طلب مساعدة في جافا سكريبت في جافا سكريبت نشر 28 يناير 2019 بتاريخ On ٦/٥/٢٠١٧ at 12:55 قال salah sea: <button name="1" onclick='c(this.name)'>First</button> <button name="2" onclick='c(this.name)'>Second</button> <button name="3" onclick='c(this.name)'>Third</button> <button name="4" onclick='c(this.name)'>Fourth</button> <button name="5" onclick='c(this.name)'>Fifth</button> function c(a){ var E = document.getElementsByTagName("button")[a-1]; console.log(E.getAttribute("name")); } اقتباس لو حاجة وقفت معاك قولى
طلب مساعدة في جافا سكريبت
في جافا سكريبت
نشر