Hi.
I have a contact form that I have made responsive.
But I have problem with a Jquery-popup, when it's shown at mobiles. It's to wide because width is set to 800px.
Is it possible to set the width according to the width of the device.
My javascript code:
I have a contact form that I have made responsive.
But I have problem with a Jquery-popup, when it's shown at mobiles. It's to wide because width is set to 800px.
Is it possible to set the width according to the width of the device.
My javascript code:
JavaScript:
$( document ).ready(function() {
$(".formaal").change(function(){
update_formaal();
});
$(".formaal").keyup(function(){
update_formaal();
});
$( "#dialog" ).dialog({
autoOpen: false,
width: 800,
buttons: {
"Ok": function() {
$( this ).dialog( "close" );
}
}
});
$( "#formaal_text" ).click(function() {
$( "#dialog" ).dialog( "open" );
});
});