开发者

div_for embedded ruby question

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜