I’m new self learning to used Jquery functions and i have no ideas how to do the following.
How do i used the following script to apply to more that one div id on the same page?
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/jquery.form.js"></script>
<script type="text/javascript" src="/jquery.validate.js"></script>
<script type="text/javascript">
$('document').ready(function()
{
$('#memberslinkupform').ajaxForm( {
target: '#memberslinkup',
success: function() {
$('#formbox').slideUp('fast');
}
});
});
</script>
Add another ID in your selector like so
A comma between the 2 items you wish to select. Adding a class is one option as well and then attaching the class to both the forms.