Skip to main content
Improved formatting
Source Link
Tyler2P
  • 2.4k
  • 30
  • 26
  • 34

$(document).ready(function(){   $('#panel_master_user_job').change(function () {   var job = $('#panel_master_user_job').val();   alert(job);  }) })
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="job" id="panel_master_user_job" class="form-control">   <option value="master">Master</option>   <option value="user">User</option>   <option value="admin">Admin</option>   <option value="custom">Custom</option>  </select>

$(document).ready(function(){ $('#panel_master_user_job').change(function () { var job = $('#panel_master_user_job').val(); alert(job); }) })
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="job" id="panel_master_user_job" class="form-control">   <option value="master">Master</option>   <option value="user">User</option>   <option value="admin">Admin</option>   <option value="custom">Custom</option>  </select>

$(document).ready(function(){   $('#panel_master_user_job').change(function () {   var job = $('#panel_master_user_job').val();   alert(job);  }) })
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="job" id="panel_master_user_job" class="form-control"> <option value="master">Master</option> <option value="user">User</option> <option value="admin">Admin</option> <option value="custom">Custom</option> </select>

Source Link

$(document).ready(function(){ $('#panel_master_user_job').change(function () { var job = $('#panel_master_user_job').val(); alert(job); }) })
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="job" id="panel_master_user_job" class="form-control"> <option value="master">Master</option> <option value="user">User</option> <option value="admin">Admin</option> <option value="custom">Custom</option> </select>