I need some help. There is a jQuery event that works the way I want. When I click, it performs the action.
$("#SEN").click(function(){
$("#abre").show(); //ou fadeIn
});
My intention is that on another page I retrieve data from a client, and when I leave checked
on the radio
that executes the action, it does not just load the page loading.
Summary is to load the page and execute event of radio
selected without user interaction.
I have tried this and it will not:
$("#SEN").bind('onload, change',function(){
$("#abre").show();
});
so also:
$('#SEN').on('onload, change',function() {
if (this.checked == true) {
$("#abre").show();
}
});
And with trigger and nothing: (
$('#SEN').on('onload, change',function() {
if (this.checked == true) {
$("#abre").show();
}
}).trigger("change");
Maybe you're doing it wrong can you help me?