Monday, August 27, 2012

jquery – Trim extra space with javascript

I\’m using PHP tidy and it automatically indents markup, adds tabs and spaces. Please take a look at this.


http://jsfiddle.net/njh85/


I got 2 questions:



  • How to remove this extra spaces from selected option (The reason is PHP tidy library: adds extra space to indent markup. But I can\’t turn it off, so I\’m searching some JS solution to trim text)


enter image description here



  • How to make \”Select one\” to act as HTML5 placeholder?






Rating: 2 out of 5 based on 4 ratings



The post jquery – Trim extra space with javascript appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/jquery-trim-extra-space-with-javascript.html

No comments:

Post a Comment