I am new to jsp and jsf. I want to insert '%' symbol in textbox. But I am not able to insert % symbol in textbox using jsp and jsf.
My jsf code is :
<h:inputText class="form-control input-sm input-element"
id="oligoName" name="name" maxlength="30" placeholder="" />
My jsp code is :
<input type="text" class="form-control input-sm input-element"
id="Name" maxlength="30" name="name" placeholder="">
I have a html code for the same. Based on that only I gave class.
All other symbols can be inserted in textbox. Issue is only with '%' symbol.
Can someone please help me out?
I found out the issue. As @Himanshu Bhardwaj @DavidS told, the issue was with the javascript. There was an event 'keypress', which suppressed us from entring '%'. I unbind that event as :
Thank you all