You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(loc)
}
},
close: {
text: 'Close',
action: function() {}
}
},
onContentReady: function() {
// bind to events
var jc = this;
this.$content.find('form').on('submit', function(e) {
// if the user submits the form by pressing enter in the field.
e.preventDefault();
jc.$$formSubmit.trigger('click'); // reference the button and click it
});
}
});
jquery-confirm version:
v3.7.0
I'm submitting a ... (check one with "x")
[ ] bug report
[ ] feature request
[X] support request
Current behavior:
I have a select box that is populated by PHP. When trying to pass its value i am getting undefined
Expected behavior:
I should be at least able to console log the value
Steps to reproduce:
Related code:
$.confirm({
" +title: 'Change Location Of ' + $name,
content: "
"Currently: " + $locationId + "" +
"" +
"",
type: 'blue',
typeAnimated: true,
escapeKey: true,
backgroundDismiss: true,
buttons: {
formSubmit: {
text: 'Change Location',
btnClass: 'btn-blue',
action: function() {
var loc = this.$content.find('#name option:selected').val()
insert any relevant code here.
Here is the HTML that is rendered on the page:
Other information:
Just console logging this.$content.find('#name').val() also gives me undefined.
The text was updated successfully, but these errors were encountered: