Using Prototype and Script.aculo.us, I try to make all tags with an identifier starting with the “idea” of Droppable , but I can’t remember how to get all the tags starting from a specific line. Thank you in advance.
Give them a class and do $$ ('div.idea');
The previous answers are correct, use the class name instead.
However, if you are forced to use identifiers, there is a CSS selector method now supported by most JS frameworks:
$$('*[id^=idea]')
. .
, , - , . ( jQuery $('.class')). , JS- ( getElementsByClassName) , .
$('.class')
getElementsByClassName
: $$('.class') .
$$('.class')
Source: https://habr.com/ru/post/1787254/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1787249/is-there-any-way-to-get-resque-web-to-work-with-redis-to-go-hosted-redis-instance&usg=ALkJrhisAK6i2674jP3Kh1GLMHxVe7xTwwonkeyup и onkeydown не поймают ничего - javascriptSharePoint - CustomAction does not appear on toolbar for content type - sharepointHow do you show "% 5d" in C? - cКак использовать функцию ajax() в JQuery? - javascriptA way to go in which class? - oopJQuery: отобразить img рядом с строкой, которая была нажата - jqueryIPhone Retina simulator has incorrect screen resolution - screenIs this a good advantage of using inline SQL over stored procedures? - performanceHow to undo the keyboard in UISearchbar? - iphoneAll Articles