_getCursorIndex for FireFox and Internet Explorer

_getCursorIndex for FireFox and Internet Explorer

getCursorIndex function works for FireFox. Hope this works for Internet Explorer also

_getCursorIndex: function() {
return this.get_element().selectionStart;
},


getCursorIndex function works for Internet Explorer

_getCursorIndex: function() {
return o.value.lastIndexOf("Your String")
},

Comments

Popular posts from this blog

ASP.NET website "Cannot read configuration file due to insufficient permissions" in IIS 7 and Windows Server 2008

Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.

None of the selected features can be installed or upgraded. Setup cannot proceed since no