[TAB] inside textarea

Allow textarea's to accept TAB key (ASCII code 63)
Could use some enhancements, like usage of SHIFT+Tab, or replacing current selected text, etc.
Originally from
https://djkeh.github.io/articles/Typing-tab-key-inside-textarea-using-javascript/

<!-- HTML -->
<html>
 <Textarea Name="CodeBody" ID="textarea_id" placeholder="Full body of the code" rows="30" class="form-control border-primary"><%=ThisCodeBody%></Textarea>
</html>


<!-- Jscript -->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$('#textarea_id').on('keydown', function(keyEvent) {
 TabManager.enableTab(this, keyEvent);
} );
</script>

Textarea boxes when adding new code in MyDev.net

Views 369 Downloads 139

'JQuery', 'JS', 'Textarea', 'JQuery', 'Tab', 'Shift', 'NotMyWork', 'ASCII 63'

ANmarAmdeen
323
Attachments
UI JS+JQuery
Revisions

v1.0

Needs