Hi, I have a mod in bootstrap and inside I have an input field.
<input type="text" name="quota" class="form-control" id="quotas" value="'.$storagequota.'" maxlength="20" >
I also have a button that, when pressed, calls a function, so I can get the value of the input field
function getQuota(){ quota = $("#quotas").val(); alert(quota); }
The problem is that I cannot get the value entered by the user. The strange thing is that I have another modal on another page that works the same way. Can anyone help with this? thanks in advance
source share