开发者

div_for embedded ruby question

开发者 https://www.devze.com 2023-02-16 16:08 出处:网络
When you run <%= div_for X do%><%end%> it creates the unique id = X_number. I wa开发者_StackOverflow社区nt to know how you reference a specific div by its unique id with a variable? Is it

When you run <%= div_for X do%><%end%> it creates the unique id = X_number. I wa开发者_StackOverflow社区nt to know how you reference a specific div by its unique id with a variable? Is it like #@X.id?


e.g. using jQuery $('#{ dom_id(x) }') but I am not sure if I understand your question correctly

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号