• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Jquery in RsForm

Jquery in RsForm 11 years 3 months ago #26289

  • sabexel
  • sabexel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
How can i use JQuery in Rsform.

like
var myId = $('#myid').value();
The administrator has disabled public write access.

Jquery in RsForm 11 years 3 months ago #26301

  • seal305
  • seal305's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Thank you received: 1
When you are managing a form Select Properties then click CSS and Javascript on the left. Then you can enter your Javascript into the "Javascript" box. These lines are from some working code I'm using.
.read forces it to waite until the form is finished loading, #butpay is my submit button, #ageholder is a hidden text box, etc..

<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
    $( '#butpay' ).mousedown(function(){
 
        var lstResult = collectNames();
        $( '#ageholdstr' ).val( lstResult );
 
    });
 
 
    }
//]]>
</script>
 
 
//<![CDATA[
 function collectNames() {
        //does some stuff
    }
//]]>
</script>

You may have to include a declaration for Jquery in your template. If so google that or search on the Joomla forms as there may be issues with using it.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!