js/jqte/uncompressed/jquery-te-1.4.0.js
function selectText(element)
			{
				if(element)
				{
					var element = element[0];
					
					if (document.body.createTextRange)
					{
						var range = document.body.createTextRange();
						range.moveToElementText(element);
						range.select();
					}
					else if (window.getSelection)
					{
						var selection = window.getSelection();  
						var range = document.createRange();
						
						if(element != "undefined" && element != null)
						{
							range.selectNodeContents(element);
							
							selection.removeAllRanges();
							selection.addRange(range);
							
							if($(element).is(":empty"))
							{
								$(element).append("&nbsp;");
									selectText($(element));
							}
						}
					}
				}
			}
function selectText(element)
			{
				if(element)
				{
					var element = element[0];
					
					if (document.body.createTextRange)
					{
						var range = document.body.createTextRange();
						range.moveToElementText(element);
						range.select();
					}
					else if (window.getSelection)
					{
						var selection = window.getSelection();  
						var range = document.createRange();
						
						if(element != "undefined" && element != null)
						{
							range.selectNodeContents(element);
							
							selection.removeAllRanges();
							selection.addRange(range);
							
							if($(element).is(":empty"))
							{
								$(element).append("&nbsp;");
									selectText($(element));
							}
						}
					}
				}
			}
function selectText ( element ) { if ( element ) { var element = element [ 0 ] ; if ( document . body . createTextRange ) { var range = document . body . createTextRange ( ) ; range . moveToElementText ( element ) ; range . select ( ) ; } else if ( window . getSelection ) { var selection = window . getSelection ( ) ; var range = document . createRange ( ) ; if ( element != "undefined" && element != null ) { range . selectNodeContents ( element ) ; selection . removeAllRanges ( ) ; selection . addRange ( range ) ; if ( $ ( element ) . is ( ":empty" ) ) { $ ( element ) . append ( "&nbsp;" ) ; selectText ( $ ( element ) ) ; } } } } }
the function of making selected to a element
the function of making selected to a element