Good stuff francesco.

On 2/18/07, Francesco Sullo <[EMAIL PROTECTED]> wrote:

 Suppose you want to add content to the"myDiv" div, you could write:

$('#myDiv').append(
    $.DIV({'class':'big'},
         $.SPAN({id:'one','class':'ps'},
             'Hello Joe', $.I({},'!')
         )
    )
);

PS. I changed the 1.1 version some minutes ago in order to optimize it.
Instead of use jQuick.attr function I preferred to extend jQuery with the
method jQuickAttr.



Rey Bango ha scritto:

Francesco,

This is a really nice plugin. Excellent work. I missed your original
announcements so I had a quick question.

If I wanted to inject a DIV into a specific section of my page (perhaps
another DIV) using this code from your site:

$.DIV({'class':'big'},
   $.SPAN({id:'one','class':'ps'},
     'Hello Joe', $.I({},'!')
   )
);

how would I go about doing it?

Rey

Francesco Sullo wrote:

 Hi all.
Today I improved jQuick.

The new version 1.1 supports events if passed as attributes, even with IE.
For example, instead of

$.FORM({},
  $.LABEL({'for':'one'},"Digit "),
  $.INPUT({id:'one'}).click(setValues)
).submit(function(){return false;});

you could write:

$.FORM({onsubmit:'return false;'},
  $.LABEL({'for':'one'},"Digit "),
  $.INPUT({id:'one',onclick:'setValues()'})
);

It is more compact and easier to understand.

For info and download: http://jquick.sullof.com



------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/



------------------------------------------------------------------------

_______________________________________________
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/

 _______________________________________________
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/




_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to