Front-End Updates
HTML5, CSS3, jQuery, AngularJS, JavaScript, JSON, Photoshop, & Usability
Thursday, June 7, 2012
jquery add http:// value in text field if http:// is not added
jquery add http:// value in text field if http:// is not added by user
var search = $('.search');
if(search.val().indexOf('http://') != 0) {
search.val('http://'+search.val());
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment