I work in application on symfony 1.4. And I have some widget like slidebar to change some value. I try to get the value in javascript and I see it contain in div and the div has this kind of id "professionnal_competence_rayon_competence3_slider_value". But the number change because I concatenate with an id from my database.
So I try to get all the div who contain the id like my exemple unsing regex. I use the querySelectorAll but it's not seem working. But if someone has an other way to use regex for my case I'm open.
This an exemple I try to use with regex:
var elements2 = document.querySelectorAll("[id='/professionnal_competence_rayon_competence[0-9]_slider_value/']");
console.log(elements2);
I hope it's good but I can explain if you don't understand. But I tru everything and I don't found the solution. So someone know how I can use regex to get a group of div using by id ? Thank in advance!!