Jquery Show Input Text Based On Input Value

前端 未结 5 1322
感动是毒
感动是毒 2021-01-21 05:35

I facing problem with my jquery, on showing input text based on input value. Here is the JS fiddle demo :

http://jsfiddle.net/Ltapp/364/

When I try to input @hot

5条回答
  •  野的像风
    2021-01-21 05:52

    use this for your if part :

    if($(this).val().match($(this).val().substr(0,strlen($(this).val())))
    

提交回复
热议问题