this is my code i used
$('.how-long-u .text-box').keyup(function(){
var value = parseInt($(this).val(), 10);
if (value < 3){
$.ajax({
url:'more-address.html',
type: "GET",
dataType: "html",
success: function(data){
console.log('hello')
$('.repeated-address').html(data);
setTimeout(function(){ $('.radiobutton').buttonset('refresh'); }, 800);
}
});
} else {
$('.repeated-address').html('');
}
});
after the keyup function ajax success is coming correct but radio button is not working
error in console is Uncaught Error: cannot call methods on button prior to initialization; attempted to call method 'widget' ca nay one help me pls
尝试:
$('.radiobutton').buttonset().buttonset('refresh');
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.