Chrome Devtools, copying over a set of answers -
i have repeatedly, wondering if there working around....
here set of amenities apartment, have transferred larger list containing amenities clicking off multiple choice cirlces. there away edit script @ once>
example
accessible air conditioning dishwasher garage hardwood floors parking patio / balcony gym in unit laundry cats allowed dogs allowed pet friendly basketball court bathtub bbq/grill bike storage business center carpet ceiling fan clubhouse game room granite counters microwave oven package receiving playground pool table range refrigerator stainless steel walk in closets
i think want checkmark of checkboxes on amenities list work:
$('div.whitelist-searchable-amenity input[type=checkbox]').each(function(){ $(this).prop('checked', true); });
https://jsfiddle.net/r62qgou3/
edit: not sure of mean "copying text script" modified script check if values looking within document. should search values of checkboxes , can use own script "copy" value elsewhere. add more values array if need more keywords.
x = [ "accessible", "air conditioning", "dishwasher", "garage", ]; $('div.whitelist-searchable-amenity input[type=checkbox]').each(function(){ if(x.indexof(this.value) > -1) { alert("copy here"); } });
Comments
Post a Comment