Expand|Select|Wrap|Line Numbers
- <input type="button" id="addlesson" value="Add Lesson!" onClick="inputter(document.getElementById('testid').value)" />
Expand|Select|Wrap|Line Numbers
- function inputter(element){
- parent.location='studentaddlesson.php?option=&s_id=' + escape(element);
- }
- $(document).ready(function() {
- $('#testid').keyup(function(e) {
- if(!e) e = window.event;
- if(e.keyCode == 13) {
- inputter(document.getElementById('testid').value);
- }
- }
- )
- } )
Expand|Select|Wrap|Line Numbers
- $(document).ready( function() {
- $("#addlesson").click( function() {
- jConfirm('Can you confirm this?', 'Confirmation Dialog');
- });
- });