Mootools to jQuery conversion -


How do I change the following line in jQuery? I have a file that I am transitioning from jQuery to jQuery and this is where I got stuck.

  var pollResultTemplate = $ ('pollResultTemplate'). GetElement ('. PollResult'). Clone (); Edit:  

OK, thanks, now it is fixed, I'm stuck on this line:

pollResultTemplate.getElement ('. PollResultLabel') .setProperty ('html', pollOptionLabel);

What is jquery equal to that? What does this line do? I want to assume that this class sets "pollResultLabel" as an active element so that the next few lines can manipulate that element?

In MooTools:

  • $ ( 'MyID') for ID is the correspondent for vanilla document.getElementById ('myID') and jQuery's $ ('# myID') . You can also use document.id ('myID') in MooTools

  • getElement to

    Note:

    Strong> Mootools and jQuery are the same document and MooTools can be present in whatever jQuery can do and a little bit more can just fly.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -