I create a form wizard (previous and next) and want to use a validation, I have multiple id to be applied on the form as an id.

this is javascript for form wizard

<script type="text/javascript">

var myform=new formtowizard({
	formid: 'fslide',
	persistsection: true,
	revealfx: ['slide', 500]
})

</script>

and this is javascript for validation

<script>	
  $(document).ready(function() {
  $("#formID").validationEngine()
});
		</script>

i have fslide and formID to the call in the form like this

<form action="" method="post" target="_self" id="??">

please some one help me how so that id=?? it can work..
thanks all.

Recommended Answers

All 9 Replies

Let me see if I get this. In this case, the case of the word is formid and it looks to be a property name for an object.

<script type="text/javascript">

var myform=new formtowizard({
	formid: 'fslide',
	persistsection: true,
	revealfx: ['slide', 500]
})

</script>

Here, the case is formID and it is a div that is not shown.

<script>	
  $(document).ready(function() {
  $("#formID").validationEngine()
});

And here there is no formid of any case but there is a form id which is the attribute id with a value of '??'.

$("#formID").validationEngine()

I will leap to the conclusion that you want the '??' to identify the form to validate with formtowizard. Another guess. Try replacing

$("#formID").validationEngine()

with

validationEngine($('form').attr('id').val());

This is not tested.

thank you friend, I have tried but not been able to walk, maybe I can explain like this: if i use

<form action="" method="post" target="_self" id="fslide">

validation not run, but if i use

<form action="" method="post" target="_self" id="formID">

formwizard not run. here my problem i want form wizard and validation can be used.

Which one does it work with. You said both don't work.

:) they can't work together because i do not know how to get them to work together. my problem is on call id as I mentioned above. if using <form action="" method="post" target="_self" id="fslide"> my form wizard run & validation not run, if using <form action="" method="post" target="_self" id="formID"> validation run & my form wizard not run.

There's not enough code to work with. Please post some more.

It's the formwizard.js file to start. You must end a javascript line with a ; or you will generate errors.

That should get you going while I look.

how can i pass the two ids such that table name and id no. of that table so that i can dynamically proceess the data through image on clickevent

<script type="text/javascript">

var myform=new formtowizard({
    formid: 'fslide',
    persistsection: true,
    revealfx: ['slide', 500]
})

</script>

formid: 'fslide', Can you change this instead ? formid: 'formID',

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.