I have the above. What I need, is if you click on the first radio, 2,3,4 are replaced with a select box with the same index id (a incremental number added to the text and radio boxes. everytime one is added it is called with a new index). And a reset button to put the original radio buttons back.
There will be a few rows of these each with a different id,
I have a table with my rows in it and a row contains 3 td's with radio button's in them (im open for a redesign idea).
When i validate i get 'big' red boxes around each radio button and the text goes below and 'This field is required' appearing after the first radio button. ( bec i havnt got any validation on the page for it)
How do i create validation just for these and put some error msg somewhere appropriate?
I have a long form and I have setup some validation but I'd like some help tidyuing it up and enhancing my requirements. The following displays an error message but its messy. I'd like to know how
a) Highlight the whole row
b) Put an asterix at the end of the appropriate item.
c) Any other techniques you think good.
Also can you explain to me why, when its validated the Address fields go out of alignment with the other text fields.
If possible could you tell me how to (in realtime using ajax) check (for example) if the NHS No exists in one of my databases. If not display an error message and not allow the form to be submitted.
I have trawled the internet for the answer but I cant find the right answer.
One last thing: If I have a datepicker field, Ive noticed that you cant edit the field directly! Any opinions?
Can anyone please point me in the right direction for the various methods of validation.
Currently I have a form that I validate using Javascript (see below). what I need is when the user submits if a field isnt entered then the whole row is highlighted
ALSO
An asterix placed inline at the end of the row (all in line with other rows)
label.error { /* remove the next line when you have trouble in IE6 with labels in list */ color: red; font-style: italic; } div.error { background-color:#F3E6E6; border-color: #000000; border-style: solid solid solid none; border-width: 12px; padding: 5px;
Sorry if this long winded. Im struggling to find examples to help me do various methods of validation.
I'm using tables and not CSS (so no labels)
I have the code below and I would really lik eto know how I can validate it in various ways eg: highlight the whole line put an asterix at the beginning /end of the error line. Summary and Warning
Plus say I have 3 boxes for dob how can i validate the whole as a date and give one error (as above).
Ive meanaged to create a modal ajax popup but it hardcodes to a html file. Casn I get it to pass a parameter of the current object id to the modal and send it to an asp page with the parameter?
I have 3 elements on the same row (below) but I end up with 3 error messages on the same line, which is crap. Is there a way of creating a date and checking its validity and displaying ONE error message?
I would like it to validate the text box (and display an error msg with the rest of the validation) for being empty IF the user selects Other from the dropdown. Also it would be nice if the text box for the Other was hidden until the user selects Other from the dropdown.
I am using the usual jquery rules and messages, but i have no idea how to do this.
I downloaded the code below to allow the user to add another form element if required. It works BUT it places the text from the previous text box into the new one.
I want to create an email page where the user can create as many recipents as possible, but this isnt acceptable. How do i modify the code to remove the clone and just create a new form element?
Cheers
Darryl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#btnAdd').click(function() { var num = $('.clonedInput').length; var newNum = new Number(num + 1); var newElem = $('#input' + num).clone().attr('id', 'input' + newNum); newElem.children(':first').attr('id', 'name' + newNum).attr('name', 'name' + newNum); $('#input' + num).after(newElem); $('#input' + num).html=''; $('#btnDel').attr('disabled',''); //if (newNum == 5) // $('#btnAdd').attr('disabled','disabled'); }); $('#btnDel').click(function() { var num = $('.clonedInput').length; $('#input' + num).remove(); $('#btnAdd').attr('disabled',''); if (num-1 == 1) $('#btnDel').attr('disabled','disabled'); }); $('#btnDel').attr('disabled','disabled'); }); </script> </head> <body> <form id="myForm"> <div id="input1" style="margin-bottom:4px;" class="clonedInput">Name: <input type="text" name="name1" id="name1" /></div> <div> <input type="button" id="btnAdd" value="add another name" /> <input type="button" id="btnDel" value="remove name" /> </div> </form> </body>
I have a map of the UK with dots on it. How can I have it so that when you rollover a dot, you get; say an image of the location and some text. Then when you move away this disappears
I would like to know how to scroll an image into the middle of the screen, pause (x seconsds) then slide out and another image appears in the top left corner and a navigation menu down the left side.
When a navigation link is clicked from the menu, can I get the content
a) to be displayed in another container on the right side of the screen (with scrollbars)
b) or in another window.
c) the link itself be underlined to indication which option is currently selected.
I have a Classic ASP page that uses 3 recordsets to create my page
The first one sets up a select list.
The second creates an outer loop and the third provides content based on the id of the 2nd recordset.
But its huge and takes ages to load. I have seen examples where it loads a bit of data then when you move down it automatically goes away and adds further more content.
I potentially could have over 10 tabs been loaded (currently fortunately its only 3) but for each tab a stored procedure is called. Its initially ok except for when i move to another page, then I go back and the page has to reload each tab, calling the Stored Procedures again (for each tab). I have cache:true on the tabs.
Is there anything else I can do to speed up each tab?
I've inherited a page that has references to jquery 1.4.4 and 1.5 using ui (1.8). I have the usual tabs in a div
ie: <div id=tabs>
<ul><li><a href="#tab1">Line 1</a></li></ul>
</div>
then
$("#tabs").tabs('select',1)
But i have an instance when there's about 20 or more tabs. Ive downloaded a scroller but i cant get it to work within the confines of my company's code.
Is there a solution to scrolling tabs using just the existing jquery library??