Javascript for replacing an abreviation by his equivalent

前端 未结 5 780
情话喂你
情话喂你 2021-01-26 05:00

I met some trouble with a javascript.

In fact I have in my database many records that are abreviations and ther equivalent,

for example, replace tel => telephon

5条回答
  •  鱼传尺愫
    2021-01-26 06:00

    When using keyup() the event handler only returns the keycode of the pressed key. For instance an x results in e = 88.

    Use $("#tags").val() to get the value of the input element.

提交回复
热议问题