skip to Main Content

How to validate array of array inputs Jquery?

How do we validate array of array input boxes using jquery validation plugin? Below is html code. <form id="transport-form"> <div class="form-group> <label> Room1</label> <input type="text name="child[0]" value="2"> <input type="text" name="age[0][]"> <input type="text" name="age[0][]"> </div> <div class="form-group> <label> Room2</label> <input type="text…

VIEW QUESTION

Jquery – Prepending <i> element inside <span> problem

$(document).on('click', '[showsubcommentsid]', function (e) { e.preventDefault(); var clickitem = $(this); var onoffstatus = $(this).attr("OnOffStatus"); var hasopennedonce = $(this).attr("HasOpennedOnce"); var labeltext = $(this).attr('label'); var topcommentid = $(this).attr("showsubcommentsid"); if (onoffstatus == 0 && hasopennedonce == 1) { $('[SubCommentsDiv=' + topcommentid + ']').css('display',…

VIEW QUESTION

Jquery: replace text but skip html tag

I need to replace just the text 'Yes, I want to receive News, Discounts and Promotions' to my custom text. From this: <p id="woo_ml_subscribe_field"> <label class="checkbox "> <input type="checkbox" name="woo_ml_subscribe" id="woo_ml_subscribe" value="1" class="input-checkbox " checked="checked"> Yes, I want to receive…

VIEW QUESTION
Back To Top
Search