Saturday, January 11, 2014

jQueryUI autocomplete work with modal dialog and zIndex

Hi jQuery Developer ;

This option specifies which element the autocomplete  menu is appended to. By appending the menu to the dialog, the menu should inherit the correct z-index.

Example Syntax :
If your dialog HTML looks like this :
<div>
<input type="submit" id="btnSearch" onclick="showDialog()" />
</div>
<div id="ticket" style="display : none">
<label>name</label><input type="text" id="txtName" name="txtName" /><br/>
<label></label><input type="submit" />
</div>
jQuery syntax :

jQuery isNaN function & Example


Hi Dear ,

jQuery isNaN() Function Example 

A NaN, which means "Not-a-Number", The classic example of a NaN is zero divided by zero, 0/0.

w3schools say : The isNaN() method determines whether a value is an illegal number or not a number .

This function return true or false . If the value is NaN return true AND false if not .

Syntax :

Export table to excel using jQuery

Hi dear ,

To export table tag to excel , 
you can use window.open() method .

Refrence :

window.open(MIMEtype , replace);
  • MiMEtype (optional) : Defult Value is "text/html". the type of document .
  • replace (optional) : The document which opened this document.

export table to excel with jQuery
Example source code for export table tag to excel with jQuery :