How can i put a default text in an input html element which user can\'t delete (fixed text on start of the input).
The second thing what i want that the cursor will b
var requiredText = 'https://'; $('#site').on('input', function() { if (String($(this).val()).indexOf(requiredText) == -1) { $(this).val(requiredText); } });