Skip to content
Advertisement

How to add values to href in which some value are from AJAX and some from PHP loop

This above code is showing data of the selected ward.

JavaScript

Now i have list of committee whose data m getting through PHP

JavaScript

Now what i want is as soon as 1 of the committee is selected.. i want to take data from ward details as well as the committee id and name to the next page. THis will provide much clear view

Advertisement

Answer

JavaScript

I used input tag to store the value and marked it as hidden. Then on click of committee item i fetched data from input and use it accordingly.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement