Jump to content

Recommended Posts

Hi guys,

 

I'm not very good with jquery so need a bit of help.

 

I've got it all working OK except for the fact that everytime I try to click into a form field using the mouse, it focuses back on the first field.

 

You can see what I mean here http://bit.ly/QPIA6s

 

Any help would be gratefully appreciated!

Link to comment
https://forums.phpfreaks.com/topic/267905-fancybox-iframe-form/
Share on other sites

It's a html problem, you're missing to close a html label tag.

 

Try,

<form method="post" action="/plugins/fancybox/source/bookings.php">
	<label>Show:</label>
	<select name="show">
		<option value="Tiptoe Through The Tombstones">Tiptoe Through the Tombstones</option>
	</select><br>
	<label>Performance:</label>
	<select name="performance">
		<option value="27th">Thursday 27th Sept 2012 - 8pm</option>
		<option value="28th">Friday 28th Sept 2012 - 8pm</option>
		<option value="29th">Saturday 29th Sept 2012 - 8pm</option>
	</select><br>
	<label>Number of tickets:</label>
	<select name="number_of_tickets">
		<option value="1">1</option>
		<option value="2">2</option>
		<option value="3">3</option>
		<option value="4">4</option>
		<option value="5">5</option>
		<option value="6">6</option>
		<option value="7">7</option>
		<option value="8">8</option>
		<option value="9">9</option>
		<option value="10">10</option>
		<option value="10+">More than 10</option>
	</select><br>
	<input name="first_name" placeholder="First name" type="text" /><br>
	<input name="last_name" placeholder="Last name" type="text" /><br>
	<input name="email" placeholder="Email address" type="" /><br>
	<input name="email_confirm" placeholder="Confirm your email address" type="" /><br>
	<input name="phone_number" placeholder="Contact phone number" type=""/><br>
	<button type="submit" name="sub_booking" value="send">Send</button>
    </form>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.