I have a bootstrap model and inside I have an input field.
<input type="text" name="quota" class="form-control" id="quotas" value="'.$storagequota.'" maxlength="20" >
Also, I have a button which when clicked 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 that user typed. The weird thing is that i have another model in another page that works in the same way. Can someone help with that? Thanks in advance.
quotas
in your page? – Zipper