'contains' method in javascript, extend the String prototype and add y(zainshaikh.posterous.com)
submitted by
zainshaikh(74) 1 year, 4 months ago
I was just wondering if there is any ‘contains’ method in javacsript. Because I had a string and wanted to search an specific word in that string, I could use indexOf method, but to keep my code more readable, I simply added a new method in the String prototype. You can see the code snippet...
|category: jQuery
|Views: 8
tags:
jQuery another
Everyones tags:
Your Tags: