Icons and Toggles in Input Fields

Icons and Toggles in Input Fields


I would like to be able to put an icon on the left-hand side in an input field like the search field has.
Additional I would like to add a toggle icon on the right-hand side of a password field to show and hide the password. This seems fairly prevalent on most password fields these days.
I think the toggle is just a case of switching the field type from password to text and back etc.

Through CSS I can put a small background icon in an input field but it disappears when text is entered also the text does not start after the icon but flush against the left-hand edge of the input field. This is the same with placeholder text, it is hidden behind the icon.

I am usng JQM 1.4.5 and JQ 1.11.1

Thanks and kind regards,