Thursday, 15 March 2012

javascript - Check the content start with the one letter and followed by any one with another content using java script regular expression -



javascript - Check the content start with the one letter and followed by any one with another content using java script regular expression -

i new javascript regular expressions

i need test content startting 1 letter , followed 1 string below

var searchvalue=$(this).val(); var divtext=$("#someid").text(); if(^searchvalue.test(divtext)) { alert("match thing here"); //do whatever want }

can 1 help me out?

thanks in advance.

javascript jquery

No comments:

Post a Comment