I have an html file with a hidden button. After i do a jquery $.ajax call, i want to show the button in the content. So i tried
//...
dataType: html,
success: function(data) {
$('.somediv').append(data);
$('input').show(); //the button in the data content that i want to display
}
//...
Is there any other way to solve this?
If i use a tag in the top of the loaded content, i can solve it that way. But it feels like a bad solution.
Edit: html + js from “data”: http://jsfiddle.net/JvyBw/
This should work fine: