开发者

how to verify duplicate entry in textboxes?

开发者 https://www.devze.com 2022-12-20 17:46 出处:网络
I have various ul in which I have various li.The each li contain a textbox.Now the user has the possibility to add a new textbox to the li and fill in information.

I have various ul in which I have various li. The each li contain a textbox. Now the user has the possibility to add a new textbox to the li and fill in information.

My question is as 开发者_StackOverflowfollows: How can I validate that the new entry made isn`t same as any previous entry in any of the textbox in a particular ul? After the user has left the textbox, I must be able to pop any message if the entry is same as any previous entry in the ul


on onblur event of textbox you can write javascript to test if the value in the textbox is duplicate and then display your popup accordingly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号