I am currently experiencing an issue with my jQuery dialog that is not displaying after clicking a radio button. Previously, the dialog was showing properly, but after implementing some script for submitting from the dialog, it stopped showing up when the radio button is clicked. Below is the code I am working with:
<script type="text/javascript">
$(document).ready(function() {
$('#dialog').dialog({
autoOpen: false
});
$("#gen2").click(function() {
$("#dialog").dialog('open');
$("#status").hide();
});
$(".defect").click(function() {
$("#status").show();
});
$(":button").click(function() {
$("#inputdefect").submit() {
$.ajax({
type: "post",
url: "process1.php",
data: "status="+str+"&action=defstat",
cache: false,
success: function() {
$(".defect").removeAttr("checked");
return this;
}
});
}
});
});
</script>