Hi I want to check whether the value of textbox is selected or not using jquery.
I want like if textbox value is already selected then wants to deselect the text otherwise select.
Please give me solution for this.
Hi I want to check whether the value of textbox is selected or not using jquery.
I want like if textbox value is already selected then wants to deselect the text otherwise select.
Please give me solution for this.
It appears the the $("input").select(); is able to detect if text is selected.
I'm not exactly sure what you want to accomplish, but you may want to view http://api.jquery.com/select/ for a basic demo of the functionality. Feel free to provide more details on how you want to implement this, and I'll be happy to try and build onto the demo.
There's a plugin which will detect whether it is selected: http://plugins.jquery.com/project/selectedText. As selecting text, I'm not sure.