jQiLogic - inline javascript conditions

jQiLogic

Introduction

jQiLogic is a small jquery plugin which is helpful to add inline conditions during jQuery append function.

Lets directly jump to Examples:

Example 1

**

$('body').appendIf($('div[class=A]').length<=0, $('
',{'class':'A'}));

Example 2

$('body').appendIf($('div[class=A]').length<=0, $('
',{'class':'A'}), $('
',{'class':'B'}));

Checkout Github page for source

https://github.com/madhugb/jQiLogic