On my project, I need to styling input radio button, so I use jquery uniform plugin. But on this page, radio button display after some Ajax loaded. I don't have permission to edit the form and Ajax function, so I can't use like knockout or data-hook. The result is radio button just like as usual. How can I call that plugin, after radio button display without editing Ajax function or that form? Sorry for my bad English. :)
您应该尝试$(document).ajaxComplete(function() {
,因为$(document).ready(function() {
将在ajax函数加载其他内容之前触发。
Maybe the problem is that your javascript function runs before your html is done loading.
I think the .ready() function can help you
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.